package tool

This commit is contained in:
Liang Ding 2015-03-09 11:58:13 +08:00
parent e433d354e2
commit 04888ede4c
1 changed files with 5 additions and 5 deletions

10
pkg.sh
View File

@ -9,7 +9,7 @@
ver=$1 ver=$1
target=$2 target=$2
list="conf doc i18n static views README.md LICENSE" list="conf doc i18n static views README.md TERMS.md LICENSE"
mkdir -p ${target} mkdir -p ${target}
@ -22,13 +22,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 --exclude conf/*.go --exclude i18n/*.go 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 --exclude conf/*.go --exclude i18n/*.go 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
@ -37,13 +37,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 --exclude conf/*.go --exclude i18n/*.go 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 --exclude conf/*.go --exclude i18n/*.go 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