This commit is contained in:
Liang Ding 2015-08-20 21:47:00 +08:00
parent 0a96f993fb
commit eaa93281d1
1 changed files with 12 additions and 18 deletions

28
pkg.sh
View File

@ -19,69 +19,63 @@ echo target=${target}
## darwin
os=darwin
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os}
export GOARCH=386
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode
## linux
os=linux
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os}
export GOARCH=386
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode
echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz
export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
tar zvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide gotools gocode
## windows
os=windows
echo wide-${ver}-${GOOS}-${GOARCH}.zip
export GOOS=${os}
export GOARCH=386
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools.exe .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe gotools.exe gocode.exe
echo wide-${ver}-${GOOS}-${GOARCH}.zip
export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/visualfc/gotools
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gotools.exe .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
zip -rq ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} gotools.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe gotools.exe gocode.exe