提交 eaf70f64 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

restore build script for win and linux

上级 6062297c
rd /s/q bin
mkdir bin
go-bindata -o=res/res.go -pkg=res res/ res/en res/zh
SET CGO_ENABLED=1
SET GOOS=windows
SET GOARCH=386
go build -o bin\zd-x86.exe src\zd.go
SET GOARCH=amd64
go build -o bin\zd-amd64.exe src\zd.go
scp bin\zd-* aaron@172.16.13.1:/Users/aaron/rd/project/zentao/go/zd/bin
\ No newline at end of file
rm -rf bin
mkdir bin
go-bindata -o=res/res.go -pkg=res res/ res/en res/zh
GO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o bin/zd-linux src/zd.go
scp bin/zd-linux* aaron@172.16.13.1:/Users/aaron/rd/project/zentao/go/zd/bin
\ No newline at end of file
rd /s/q build
mkdir build
go-bindata -o=res/res.go -pkg=res res/ res/doc
SET CGO_ENABLED=1
SET GOOS=windows
SET GOARCH=386
go build -o build\zd-x86.exe src\zd.go
SET GOARCH=amd64
go build -o build\zd-amd64.exe src\zd.go
scp build\zd-* aaron@172.16.13.1:/Users/aaron/rd/project/zentao/go/zd/build
\ No newline at end of file
rm -rf build
mkdir build
go-bindata -o=res/res.go -pkg=res res/ res/doc
GO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o build/zd-linux src/zd.go
scp build/zd-linux* aaron@172.16.13.1:/Users/aaron/rd/project/zentao/go/zd/build
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册