diff --git a/core/code/publish.go b/core/code/publish.go index 874a97b6..69f33d16 100644 --- a/core/code/publish.go +++ b/core/code/publish.go @@ -84,9 +84,16 @@ func init() { ice.CONTEXTS: {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, arg...) }}, nfs.SOURCE: {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, nfs.SOURCE) }}, nfs.BINARY: {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, nfs.BINARY) }}, - "manual": {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, "manual") }}, - "wget": {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, "wget") }}, - "curl": {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, "curl") }}, + "manual": {Hand: func(m *ice.Message, arg ...string) { + host := web.UserHost(m) + m.Cmdy("web.wiki.spark", "shell", + cli.LINUX, kit.Format(`curl -fSL -O %s/publish/ice.linux.amd64`, host), + cli.DARWIN, kit.Format(`curl -fSL -O %s/publish/ice.darwin.amd64`, host), + cli.WINDOWS, kit.Format(`curl -fSL -O %s/publish/ice.windows.amd64`, host), + ) + }}, + "wget": {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, "wget") }}, + "curl": {Hand: func(m *ice.Message, arg ...string) { _publish_contexts(m, "curl") }}, "version": {Hand: func(m *ice.Message, arg ...string) { defer m.Echo("").Echo("
") for _, cpu := range []string{cli.AMD64, cli.X86, cli.ARM} { diff --git a/init.go b/init.go index 3e466214..4b1a39ea 100644 --- a/init.go +++ b/init.go @@ -80,10 +80,12 @@ func Run(arg ...string) string { kit.If(len(arg) == 0 && len(os.Args) > 1, func() { arg = kit.Simple(os.Args[1:], kit.Split(kit.Env(CTX_ARG))) }) if len(arg) == 0 { if runtime.GOOS == "windows" { - arg = append(arg, SERVE, START, DEV, DEV) + arg = append(arg, SERVE, START) } else { arg = append(arg, FOREVER, START) } + } else if arg[0] == FOREVER && runtime.GOOS == "windows" { + arg[0] = SERVE } Pulse.meta[MSG_DETAIL] = arg kit.For(kit.Sort(os.Environ()), func(env string) {