Skip to content

Commit

Permalink
build for used binaries first
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeantet committed Jul 18, 2016
1 parent c13b48c commit 64bc391
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ rm ${releaseFolder}*.zip

rice embed-go

arch=amd64
os=windows
product=${productName}_${versionLabel}_${os}_${arch}
env GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.version=${1} -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` " -o ${product}.exe cmd/main.go
zip -r ${product}.zip ${product}.exe
rm $product.exe
mv $product.zip ${releaseFolder}/

arch=amd64
os=darwin
product=${productName}_${versionLabel}_${os}_${arch}
Expand All @@ -17,39 +25,30 @@ tar czfv $product.tgz $product
rm $product
mv $product.tgz ${releaseFolder}/


arch=amd64
arch=arm
os=linux
product=${productName}_${versionLabel}_${os}_${arch}
env GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.version=${1} -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` " -o $product cmd/main.go
tar czfv $product.tgz $product
rm $product
mv $product.tgz ${releaseFolder}/

arch=386
arch=amd64
os=linux
product=${productName}_${versionLabel}_${os}_${arch}
env GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.version=${1} -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` " -o $product cmd/main.go
tar czfv $product.tgz $product
rm $product
mv $product.tgz ${releaseFolder}/

arch=arm
arch=386
os=linux
product=${productName}_${versionLabel}_${os}_${arch}
env GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.version=${1} -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` " -o $product cmd/main.go
tar czfv $product.tgz $product
rm $product
mv $product.tgz ${releaseFolder}/

arch=amd64
os=windows
product=${productName}_${versionLabel}_${os}_${arch}
env GOOS=$os GOARCH=$arch go build -ldflags="-s -w -X main.version=${1} -X main.buildstamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` " -o ${product}.exe cmd/main.go
zip -r ${product}.zip ${product}.exe
rm $product.exe
mv $product.zip ${releaseFolder}/

arch=386
os=windows
product=${productName}_${versionLabel}_${os}_${arch}
Expand Down

0 comments on commit 64bc391

Please sign in to comment.