From 9cd148e1d0b9a6b6b389fa10de379f832a126148 Mon Sep 17 00:00:00 2001 From: bergyu Date: Tue, 4 Jan 2022 16:04:21 +0800 Subject: [PATCH] opt app --- Makefile | 2 ++ etc/conf/bash_local.sh | 1 + src/app.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b44b3d9e..b322ae8a 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ ice: app: CGO_ENABLED=1 go build -o usr/publish/contexts.app/Contents/MacOS/contexts src/app.go src/binpack.go && open usr/publish/contexts.app + hdiutil create usr/publish/tmp.dmg -ov -volname "ContextsInstall" -fs HFS+ -srcfolder "usr/publish/contexts.app" + hdiutil convert usr/publish/tmp.dmg -format UDZO -o usr/publish/ContextsInstall.dmg %: src/%.go @echo && date diff --git a/etc/conf/bash_local.sh b/etc/conf/bash_local.sh index 031c85fc..5799d526 100644 --- a/etc/conf/bash_local.sh +++ b/etc/conf/bash_local.sh @@ -16,4 +16,5 @@ ish_sys_path_insert $PWD/bin ps aux |grep -v grep |grep ice.bin &>/dev/null && return ps aux |grep -v grep |grep tmux &>/dev/null && return +sleep 3 cd $CTX_ROOT && source etc/miss.sh diff --git a/src/app.go b/src/app.go index b48d96ce..9605d7fc 100644 --- a/src/app.go +++ b/src/app.go @@ -11,7 +11,7 @@ import ( func main() { os.Chdir(path.Join("/Users", os.Getenv("USER"), "contexts")) - go ice.Run("serve", "start", "dev", "shy") + go ice.Run("serve", "start") time.Sleep(time.Second) app.Run() }