diff options
Diffstat (limited to 'ci/bintray.sh')
-rwxr-xr-x | ci/bintray.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ci/bintray.sh b/ci/bintray.sh index 0d3efa6e..4e43ef3d 100755 --- a/ci/bintray.sh +++ b/ci/bintray.sh @@ -1,7 +1,10 @@ #!/bin/bash +go version |grep go1.8 || exit VERSION=$(git describe --tags) mkdir ci/binaries -go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-$GOOS-$GOARCH +GOOS=windows GOARCH=amd64 go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-win64.exe +GOOS=linux GOARCH=amd64 go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-linux64 +GOOS=linux GOARCH=arm go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-linux-arm cd ci cat > deploy.json <<EOF { @@ -11,7 +14,7 @@ cat > deploy.json <<EOF "subject": "42wim" }, "version": { - "name": "$VERSION-$GOOS-$GOARCH" + "name": "$VERSION" }, "files": [ |