forked from x/ContextOS
opt some
This commit is contained in:
parent
2ca6fd72c7
commit
5bc53aa9f0
3
Makefile
3
Makefile
@ -2,6 +2,7 @@ export GOPROXY=https://goproxy.cn
|
|||||||
export GOPRIVATE=github.com
|
export GOPRIVATE=github.com
|
||||||
# export CGO_ENABLED=0
|
# export CGO_ENABLED=0
|
||||||
|
|
||||||
|
meta_info = "-X main.Time=`date +"%Y-%m-%d_%H:%M:%S"` -X main.Version=`git describe --tags` -X main.HostName=`hostname` -X main.UserName=`whoami`"
|
||||||
all:
|
all:
|
||||||
@echo && date
|
@echo && date
|
||||||
go build -v -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart
|
go build -ldflags $(meta_info) -v -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart
|
||||||
|
14
src/main.go
14
src/main.go
@ -37,4 +37,18 @@ import (
|
|||||||
_ "github.com/shylinux/mysql-story/src/server"
|
_ "github.com/shylinux/mysql-story/src/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
Time string
|
||||||
|
Version string
|
||||||
|
HostName string
|
||||||
|
UserName string
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
ice.Info.Build.Time = Time
|
||||||
|
ice.Info.Build.Version = Version
|
||||||
|
ice.Info.Build.HostName = HostName
|
||||||
|
ice.Info.Build.UserName = UserName
|
||||||
|
}
|
||||||
|
|
||||||
func main() { print(ice.Run()) }
|
func main() { print(ice.Run()) }
|
||||||
|
30
src/main.shy
30
src/main.shy
@ -1,9 +1,3 @@
|
|||||||
source ../usr/icebergs/base/gdb/gdb.shy
|
|
||||||
source ../usr/icebergs/base/tcp/tcp.shy
|
|
||||||
source ../usr/icebergs/base/nfs/nfs.shy
|
|
||||||
source ../usr/icebergs/base/ssh/ssh.shy
|
|
||||||
source ../usr/icebergs/base/mdb/mdb.shy
|
|
||||||
return
|
|
||||||
title "contexts"
|
title "contexts"
|
||||||
premenu
|
premenu
|
||||||
|
|
||||||
@ -26,12 +20,6 @@ volcanos icebergs intshell
|
|||||||
learning toolkits contexts
|
learning toolkits contexts
|
||||||
` stroke red fill black
|
` stroke red fill black
|
||||||
|
|
||||||
chapter "群组"
|
|
||||||
field "群组" web.chat.river
|
|
||||||
field "粘贴板" web.chat.paste
|
|
||||||
field "二维码" web.chat.qrcode
|
|
||||||
field "地理位置" web.chat.location
|
|
||||||
|
|
||||||
chapter "代码"
|
chapter "代码"
|
||||||
field "收藏夹" web.code.favor
|
field "收藏夹" web.code.favor
|
||||||
field "生成器" web.code.autogen
|
field "生成器" web.code.autogen
|
||||||
@ -40,6 +28,24 @@ field "火山架" web.code.git.trend args `volcanos`
|
|||||||
field "冰山架" web.code.git.trend args `icebergs`
|
field "冰山架" web.code.git.trend args `icebergs`
|
||||||
field "冰山架" web.code.git.spide args `usr/icebergs`
|
field "冰山架" web.code.git.spide args `usr/icebergs`
|
||||||
|
|
||||||
|
|
||||||
|
source ../usr/icebergs/base/ctx/ctx.shy
|
||||||
|
source ../usr/icebergs/base/cli/cli.shy
|
||||||
|
source ../usr/icebergs/base/aaa/aaa.shy
|
||||||
|
source ../usr/icebergs/base/web/web.shy
|
||||||
|
source ../usr/icebergs/base/gdb/gdb.shy
|
||||||
|
source ../usr/icebergs/base/log/log.shy
|
||||||
|
source ../usr/icebergs/base/tcp/tcp.shy
|
||||||
|
source ../usr/icebergs/base/nfs/nfs.shy
|
||||||
|
source ../usr/icebergs/base/ssh/ssh.shy
|
||||||
|
source ../usr/icebergs/base/mdb/mdb.shy
|
||||||
|
|
||||||
|
chapter "群组"
|
||||||
|
field "群组" web.chat.river
|
||||||
|
field "粘贴板" web.chat.paste
|
||||||
|
field "二维码" web.chat.qrcode
|
||||||
|
field "地理位置" web.chat.location
|
||||||
|
|
||||||
chapter "环境"
|
chapter "环境"
|
||||||
field "安装管理" web.code.install
|
field "安装管理" web.code.install
|
||||||
field "发布管理" web.code.publish
|
field "发布管理" web.code.publish
|
||||||
|
Loading…
x
Reference in New Issue
Block a user