package tool
This commit is contained in:
parent
5d8c8e5d3a
commit
18c1e7f17d
12
pkg.bash
12
pkg.bash
|
@ -23,13 +23,13 @@ os=darwin
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=386
|
export GOARCH=386
|
||||||
go build
|
go build
|
||||||
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs
|
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude conf/*.go --exclude i18n/*.go
|
||||||
rm -f wide
|
rm -f wide
|
||||||
|
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=amd64
|
export GOARCH=amd64
|
||||||
go build
|
go build
|
||||||
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs
|
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude conf/*.go --exclude i18n/*.go
|
||||||
rm -f wide
|
rm -f wide
|
||||||
|
|
||||||
## linux
|
## linux
|
||||||
|
@ -38,13 +38,13 @@ os=linux
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=386
|
export GOARCH=386
|
||||||
go build
|
go build
|
||||||
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs
|
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude conf/*.go --exclude i18n/*.go
|
||||||
rm -f wide
|
rm -f wide
|
||||||
|
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=amd64
|
export GOARCH=amd64
|
||||||
go build
|
go build
|
||||||
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs
|
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude conf/*.go --exclude i18n/*.go
|
||||||
rm -f wide
|
rm -f wide
|
||||||
|
|
||||||
## windows
|
## windows
|
||||||
|
@ -53,11 +53,11 @@ os=windows
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=386
|
export GOARCH=386
|
||||||
go build
|
go build
|
||||||
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe
|
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe --exclude=conf/*.go --exclude=i18n/*.go
|
||||||
rm -f wide.exe
|
rm -f wide.exe
|
||||||
|
|
||||||
export GOOS=${os}
|
export GOOS=${os}
|
||||||
export GOARCH=amd64
|
export GOARCH=amd64
|
||||||
go build
|
go build
|
||||||
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe
|
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe --exclude=conf/*.go --exclude=i18n/*.go
|
||||||
rm -f wide.exe
|
rm -f wide.exe
|
||||||
|
|
Loading…
Reference in New Issue