Skip to content

Commit

Permalink
Add dist script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Herman committed Apr 27, 2022
1 parent 0a948a8 commit c1940af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
.DS_Store
14 changes: 14 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e
set -x
rm -rf build/*

GOOS=darwin GOARCH=amd64 go build -o build/gq .
zip -j build/darwin-amd64.zip build/gq
GOOS=darwin GOARCH=arm64 go build -o build/gq .
zip -j build/darwin-arm64.zip build/gq
GOOS=linux GOARCH=amd64 go build -o build/gq .
zip -j build/linux-amd64.zip build/gq
GOOS=windows GOARCH=amd64 go build -o build/gq .
zip -j build/windows-amd64.zip build/gq

0 comments on commit c1940af

Please sign in to comment.