mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt app
This commit is contained in:
parent
3e43fc5500
commit
9cd148e1d0
2
Makefile
2
Makefile
@ -12,6 +12,8 @@ ice:
|
|||||||
|
|
||||||
app:
|
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
|
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
|
%: src/%.go
|
||||||
@echo && date
|
@echo && date
|
||||||
|
@ -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 ice.bin &>/dev/null && return
|
||||||
ps aux |grep -v grep |grep tmux &>/dev/null && return
|
ps aux |grep -v grep |grep tmux &>/dev/null && return
|
||||||
|
sleep 3
|
||||||
cd $CTX_ROOT && source etc/miss.sh
|
cd $CTX_ROOT && source etc/miss.sh
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
os.Chdir(path.Join("/Users", os.Getenv("USER"), "contexts"))
|
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)
|
time.Sleep(time.Second)
|
||||||
app.Run()
|
app.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user