Skip to content

Commit

Permalink
update build for win and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Dec 2, 2024
1 parent 1545d03 commit eff7a37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/bash

version=${1:-"0.3.0"}
version=${1:-"0.4.0"}
mkdir -p bin
rm -rf bin/*

architectures=(amd64 arm64)
for arch in "${architectures[@]}"; do
GOOS=linux GOARCH=$arch go build -o bin/lazyjournal-$version-linux-$arch
GOOS=darwin GOARCH=$arch go build -o bin/lazyjournal-$version-macos-$arch
if [ $arch == "amd64" ]; then
GOOS=windows GOARCH=$arch go build -o bin/lazyjournal-$version-windows-$arch
fi
GOOS=windows GOARCH=$arch go build -o bin/lazyjournal-$version-windows-$arch.exe
done

if [ -n "$2" ]; then
Expand Down

0 comments on commit eff7a37

Please sign in to comment.