Skip to content

Commit

Permalink
add build bat script
Browse files Browse the repository at this point in the history
  • Loading branch information
andy committed Jul 23, 2024
1 parent 9734c4b commit 01b8968
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ go.work.sum
.idea
.vscode
config.yml
bin

14 changes: 14 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SET BINARY_NAME=ela

go build -o bin/%BINARY_NAME%.exe

SET CGO_ENABLED=0
SET GOOS=darwin
SET GOARCH=amd64
go build -o bin/%BINARY_NAME%.darwin.amd64


SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build -o bin/%BINARY_NAME%.linux.amd64

0 comments on commit 01b8968

Please sign in to comment.