Skip to content

Commit

Permalink
chore: 🤖 update build, compress dir
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewonkong committed Feb 17, 2024
1 parent 60b26f5 commit 5957d20
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vendor
go_build_gitty.exe
comp
bin
dist
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ ref:
.PHONY: ref

build:
@GOOS=linux GOARCH=amd64 go build -o dist/intel/gitty
@GOARCH=arm64 go build -o dist/arm/gitty
@GOOS=windows GOARCH=amd64 go build -o dist/win/gitty.exe
@GOOS=linux GOARCH=amd64 go build -o bin/intel/gitty
@GOARCH=arm64 go build -o bin/arm/gitty
@GOOS=windows GOARCH=amd64 go build -o bin/win/gitty.exe
.PHONY: build

comp:
@tar -czvf comp/gitty-macos-intel.tar.gz dist/intel/gitty
@tar -czvf comp/gitty-macos-arm.tar.gz dist/arm/gitty
@tar -czvf comp/gitty-windows.tar.gz dist/win/gitty.exe
@tar -czvf dist/gitty-macos-intel.tar.gz -C bin/intel gitty
@tar -czvf dist/gitty-macos-arm.tar.gz -C bin/arm gitty
@tar -czvf dist/gitty-windows.tar.gz -C bin/win gitty.exe
.PHONY: comp
Binary file removed comp/gitty-macos-arm.tar.gz
Binary file not shown.
Binary file removed comp/gitty-macos-intel.tar.gz
Binary file not shown.
Binary file removed comp/gitty-windows.tar.gz
Binary file not shown.
Binary file removed dist/arm/gitty
Binary file not shown.
Binary file removed dist/intel/gitty
Binary file not shown.
Binary file removed dist/win/gitty.exe
Binary file not shown.

0 comments on commit 5957d20

Please sign in to comment.