Skip to content

Commit

Permalink
Windows versions now have .exe file extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
springcomp committed Mar 20, 2023
1 parent 1e13183 commit 675ba38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ jobs:
build/jp-linux-amd64
build/jp-linux-arm-arm7
build/jp-linux-arm64
build/jp-windows-386
build/jp-windows-amd64
build/jp-windows-386.exe
build/jp-windows-amd64.exe
6 changes: 5 additions & 1 deletion scripts/build-all-platforms
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ rm -rf ./build/jp-*
# All builds for 386/amd64.
for goos in darwin linux windows freebsd; do
export GOOS="$goos"
export EXT=""
if [ "$goos" = "windows" ]; then
export EXT=".exe"
fi
for goarch in 386 amd64; do
export GOARCH="$goarch"
echo "Building for $GOOS/$GOARCH"
go build -v -o build/jp-$GOOS-$GOARCH 2>/dev/null
go build -v -o build/jp-$GOOS-$GOARCH$EXT 2>/dev/null
done
done
# Now handle ARM builds.
Expand Down

0 comments on commit 675ba38

Please sign in to comment.