Skip to content

Commit

Permalink
add build script for different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
LeOndaz committed Mar 3, 2024
1 parent a4aa6d6 commit 607e6b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
qurandw
bin
.DS_Store
.idea
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# for mac
GOOS=darwin GOARCH=amd64 go build -o bin/qurandw-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -o bin/qurandw-darwin-arm64

# for linux
GOOS=linux GOARCH=amd64 go build -o bin/qurandw-linux-amd64
GOOS=linux GOARCH=386 go build -o bin/qurandw-linux-x86

# for windows
GOOS=windows GOARCH=amd64 go build -o bin/qurandw-win32-amd64.exe
GOOS=windows GOARCH=386 go build -o bin/qurandw-win32-x86.exe

0 comments on commit 607e6b7

Please sign in to comment.