Skip to content

Commit

Permalink
Merge pull request #19 from magcho/build
Browse files Browse the repository at this point in the history
  • Loading branch information
magcho authored Nov 1, 2021
2 parents b4cb6ec + 29cff33 commit a962b15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ビルド済み実行バイナリを除去
dotz
dist/

.DS_Store
.log/
Expand All @@ -22,5 +21,3 @@ dotz

# Dependency directories (remove the comment below to include it)
vendor/


5 changes: 3 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dotz_ver = 0.0.0
build: main.go
go build -v -ldflags "-X main.dotzVersion=${dotz_ver}" .
GOOS=darwin GOARCH=amd64 go build -v -ldflags "-X main.dotzVersion=${dotz_ver}" -o ./dist/dotz-amd64 .
GOOS=darwin GOARCH=arm64 go build -v -ldflags "-X main.dotzVersion=${dotz_ver}" -o ./dist/dotz-arm64 .
clean:
rm dotz
rm ./dist/*

0 comments on commit a962b15

Please sign in to comment.