Skip to content

Commit

Permalink
Fix filenames on windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
buzzy committed Oct 7, 2022
1 parent 93779b1 commit bf5f452
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ do
fi

BINARY="scalr-cli_${VERSION}_${GOOS}_${GOARCH}${EXT}"

GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-s -w" -o bin/$BINARY .
cd bin
chmod +x $BINARY
mv $BINARY scalr
mv $BINARY "scalr${EXT}"
PACKAGE="scalr-cli_${VERSION}_${GOOS}_${GOARCH}.zip"
zip -9 $PACKAGE scalr
zip -9 $PACKAGE "scalr${EXT}"
sha256sum $PACKAGE >> "scalr-cli_${VERSION}_SHA256SUMS"
rm scalr
rm "scalr${EXT}"
cd ..
done
done

0 comments on commit bf5f452

Please sign in to comment.