Skip to content

Commit

Permalink
BUGFIX: Fix build artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-smith committed Jan 25, 2017
1 parent 5b50d26 commit da390a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ TARGETS=${1:-windows/386,windows/amd64,darwin/amd64,linux/386,linux/amd64,linux/
export CGO_ENABLED=1
docker pull karalabe/xgo-latest
go get github.com/karalabe/xgo
mkdir dist
(cd dist/ && xgo --targets=$TARGETS ../)
(chmod +x ./dist/*)
mkdir dist && cd dist/
xgo --targets=$TARGETS ../
chmod +x *
11 changes: 8 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ if [ ! -z "$TRAVIS_TAG" ] &&
echo "This will deploy!"

# Cross-compile for all platforms
./build.sh
export CGO_ENABLED=1
docker pull karalabe/xgo-latest
go get github.com/karalabe/xgo
mkdir dist/ && cd dist/
xgo --targets=windows/386,windows/amd64,darwin/amd64,linux/386,linux/amd64,linux/arm ../
chmod +x *

# Copy libwinpthread-1.dll (user must rename the dll for their system to libwinpthread-1.dll)
cp ../.travis/win32/libwinpthread-1.dll dist/libwinpthread-1.win32.dll
cp ../.travis/win64/libwinpthread-1.dll dist/libwinpthread-1.win64.dll
cp ../.travis/win32/libwinpthread-1.dll libwinpthread-1.win32.dll
cp ../.travis/win64/libwinpthread-1.dll libwinpthread-1.win64.dll

# Calculate SHA512 hashes
sha512sum * > sha512_checksums.txt
Expand Down

0 comments on commit da390a7

Please sign in to comment.