package tool

This commit is contained in:
Liang Ding 2014-11-03 14:24:49 +08:00
parent 164e8cc345
commit 957a909512
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/wide.exe
/wide
/main
/packer
/data/workspace/bin/
/data/workspace/pkg/

18
pkg.bash Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Wide package tool.
#
# See https://github.com/gobuild/gobuild3/tree/master/packer
ver=$1
echo $ver
./packer --os darwin --arch 386 -o wide-$ver-darwin-386.tar.gz
./packer --os darwin --arch amd64 -o wide-$ver-darwin-amd64.tar.gz
./packer --os linux --arch 386 -o wide-$ver-linux-386.tar.gz
./packer --os linux --arch amd64 -o wide-$ver-linux-amd64.tar.gz
./packer --os windows --arch 386 -o wide-$ver-windows-386.zip
./packer --os windows --arch amd64 -o wide-$ver-windows-amd64.zip