Skip to content

Commit

Permalink
make release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoqi committed May 5, 2021
1 parent 678cdd7 commit 84fcbde
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# vendor/

/remove
/Output
/output
/docs
crawl
/build
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ run:
./crawl

dev: build run


release:

cd build && GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./crawl ..
cd build && tar -czf crawl.darwin-amd64.tar.gz ./crawl ./configs

cd build && GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ./crawl ..
cd build && tar -czf crawl.linux-amd64.tar.gz ./crawl ./configs

cd build && GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ./crawl.exe ..
cd build && tar -czf crawl.windows-amd64.tar.gz ./crawl.exe ./configs

0 comments on commit 84fcbde

Please sign in to comment.