From 66654b7b1525c8da5596c698fcdcb971bd2557b5 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 19 Sep 2015 21:40:32 +0800 Subject: [PATCH] package tool --- pkg.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pkg.sh b/pkg.sh index 36fda91..22a6e5e 100755 --- a/pkg.sh +++ b/pkg.sh @@ -20,7 +20,7 @@ echo target=${target} os=darwin export GOOS=${os} -export GOARCH=386 +export GOARCH=amd64 echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz go build go build github.com/visualfc/gotools @@ -29,7 +29,7 @@ tar zcf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wi rm -f wide gotools gocode export GOOS=${os} -export GOARCH=amd64 +export GOARCH=386 echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz go build go build github.com/visualfc/gotools @@ -41,7 +41,7 @@ rm -f wide gotools gocode os=linux export GOOS=${os} -export GOARCH=386 +export GOARCH=amd64 echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz go build go build github.com/visualfc/gotools @@ -50,7 +50,7 @@ tar zcf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} gotools gocode wi rm -f wide gotools gocode export GOOS=${os} -export GOARCH=amd64 +export GOARCH=386 echo wide-${ver}-${GOOS}-${GOARCH}.tar.gz go build go build github.com/visualfc/gotools @@ -61,15 +61,6 @@ rm -f wide gotools gocode ## windows os=windows -export GOOS=${os} -export GOARCH=386 -echo wide-${ver}-${GOOS}-${GOARCH}.zip -go build -go build github.com/visualfc/gotools -go build github.com/nsf/gocode -zip -r -q ${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 - export GOOS=${os} export GOARCH=amd64 echo wide-${ver}-${GOOS}-${GOARCH}.zip @@ -79,3 +70,11 @@ go build github.com/nsf/gocode zip -r -q ${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 +export GOOS=${os} +export GOARCH=386 +echo wide-${ver}-${GOOS}-${GOARCH}.zip +go build +go build github.com/visualfc/gotools +go build github.com/nsf/gocode +zip -r -q ${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