1 Star 0 Fork 21

叶落轻风雨/natpass

forked from lwch/natpass 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build 1019 Bytes
一键复制 编辑 原始数据 按行查看 历史
lwch 提交于 2022-10-12 15:15 . 修正build脚本问题
#!/bin/sh
BUILD_VERSION=${BUILD_VERSION:-0.0.0}
HASH=`git log -n1 --pretty=format:%h`
REVERSION=`git log --oneline|wc -l|tr -d ' '`
BUILD_TIME=`date +'%Y-%m-%d %H:%M:%S'`
LDFLAGS="-X 'main.gitHash=$HASH'
-X 'main.gitReversion=$REVERSION'
-X 'main.buildTime=$BUILD_TIME'
-X 'main.version=$BUILD_VERSION'"
if [ "$GOOS" = "windows" ]; then
LDFLAGS="$LDFLAGS
--extldflags '-static -fpic -lssp'"
fi
go run contrib/bindata/main.go -pkg shell -o code/client/rule/shell/assets.go \
-prefix html/shell "$@" html/shell/...
go run contrib/bindata/main.go -pkg vnc -o code/client/rule/vnc/assets.go \
-prefix html/vnc "$@" html/vnc/...
go run contrib/bindata/main.go -pkg code -o code/client/rule/code/assets.go \
-prefix html/code "$@" html/code/...
go run contrib/bindata/main.go -pkg dashboard -o code/client/dashboard/assets.go \
-prefix html/dashboard "$@" html/dashboard/...
go build -ldflags "$LDFLAGS" -o bin/np-svr code/server/*.go
go build -ldflags "$LDFLAGS" -tags "$TAGS" -o bin/np-cli code/client/*.go
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lhInfo/natpass.git
git@gitee.com:lhInfo/natpass.git
lhInfo
natpass
natpass
master

搜索帮助