Skip to content

Commit

Permalink
add dist script
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyk93 committed Jun 22, 2021
1 parent fa7b8b1 commit d1a4854
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@

# GoLand
.idea/

# macOS
.DS_Store
._*

# Output
output-*/
dist/
/gcoredl
18 changes: 18 additions & 0 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -eux

cd $(dirname $0)

rm -rf dist
mkdir -p dist

_build() {
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -o dist/gcoredl-$1-$2
}

_build windows amd64
_build linux amd64
_build linux arm64
_build darwin amd64
_build darwin arm64

0 comments on commit d1a4854

Please sign in to comment.