forked from x/icebergs
add some
This commit is contained in:
parent
e8487da572
commit
96d30d7beb
@ -131,7 +131,7 @@ func init() {
|
|||||||
m.OptionDefault(mdb.KEY, Prefix(m.Option(mdb.ZONE), m.Option(mdb.NAME)))
|
m.OptionDefault(mdb.KEY, Prefix(m.Option(mdb.ZONE), m.Option(mdb.NAME)))
|
||||||
m.Option(nfs.FILE, path.Join(m.Option(mdb.ZONE), kit.Keys(m.Option(mdb.NAME), GO)))
|
m.Option(nfs.FILE, path.Join(m.Option(mdb.ZONE), kit.Keys(m.Option(mdb.NAME), GO)))
|
||||||
m.Option(mdb.TEXT, kit.Format("`name:\"list %s\" help:\"%s\"`", _autogen_list(m), m.Option(mdb.HELP)))
|
m.Option(mdb.TEXT, kit.Format("`name:\"list %s\" help:\"%s\"`", _autogen_list(m), m.Option(mdb.HELP)))
|
||||||
defer _autogen_version(m.Spawn())
|
defer m.Go(func() { _autogen_version(m.Spawn()) })
|
||||||
if p := path.Join(ice.SRC, kit.ExtChange(m.Option(nfs.FILE), SHY)); !nfs.Exists(m, p) {
|
if p := path.Join(ice.SRC, kit.ExtChange(m.Option(nfs.FILE), SHY)); !nfs.Exists(m, p) {
|
||||||
_autogen_source(m, kit.ExtChange(path.Join(ice.SRC, m.Option(cli.MAIN)), SHY), p)
|
_autogen_source(m, kit.ExtChange(path.Join(ice.SRC, m.Option(cli.MAIN)), SHY), p)
|
||||||
_autogen_script(m, p)
|
_autogen_script(m, p)
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
func _binpack_file(m *ice.Message, w io.Writer, arg ...string) {
|
func _binpack_file(m *ice.Message, w io.Writer, arg ...string) {
|
||||||
if kit.IsIn(kit.Ext(arg[0]), "zip", "gz") {
|
if kit.IsIn(kit.Ext(arg[0]), "zip", "gz") {
|
||||||
return
|
return
|
||||||
} else if kit.Contains(arg[0], "/dist/", "/bin/", "/log/") {
|
} else if kit.Contains(arg[0], "/bin/", "/log/") {
|
||||||
return
|
return
|
||||||
} else if strings.HasPrefix(arg[0], "usr/volcanos/publish/") && !strings.HasSuffix(arg[0], "/proto.js") {
|
} else if strings.HasPrefix(arg[0], "usr/volcanos/publish/") && !strings.HasSuffix(arg[0], "/proto.js") {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user