mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
opt app
This commit is contained in:
parent
4c97e33256
commit
2ae3cc39b8
1
Makefile
1
Makefile
@ -13,6 +13,7 @@ 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"
|
||||
rm -f usr/publish/ContextsInstall.dmg
|
||||
hdiutil convert usr/publish/tmp.dmg -format UDZO -o usr/publish/ContextsInstall.dmg
|
||||
|
||||
%: src/%.go
|
||||
|
@ -6,12 +6,15 @@ import (
|
||||
"time"
|
||||
|
||||
"shylinux.com/x/ice"
|
||||
"shylinux.com/x/icebergs/base/cli"
|
||||
"shylinux.com/x/icebergs/base/tcp"
|
||||
"shylinux.com/x/icebergs/base/web"
|
||||
"shylinux.com/x/icebergs/misc/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
os.Chdir(path.Join("/Users", os.Getenv("USER"), "contexts"))
|
||||
go ice.Run("serve", "start")
|
||||
os.Chdir(path.Join(os.Getenv(cli.HOME), "contexts"))
|
||||
go ice.Run(web.SERVE, tcp.START)
|
||||
time.Sleep(time.Second)
|
||||
app.Run()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user