-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (13 loc) · 764 Bytes
/
Makefile
File metadata and controls
18 lines (13 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
release: release-clean release-build
release-clean:
rm -rf dist
release-build-mac-x64:
env GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/cryptonabber-sync cmd/main.go
tar -C dist/darwin/amd64/ -czvf dist/darwin/amd64/osx-x64.tar.gz cryptonabber-sync
release-build-mac-arm64:
env GOOS=darwin GOARCH=arm64 go build -o dist/darwin/arm64/cryptonabber-sync cmd/main.go
tar -C dist/darwin/arm64/ -czvf dist/darwin/arm64/osx-arm64.tar.gz cryptonabber-sync
release-build-win-x64:
env GOOS=windows GOARCH=amd64 go build -o dist/windows/amd64/cryptonabber-sync.exe cmd/main.go
(cd dist/windows/amd64 && zip -r - cryptonabber-sync.exe) > dist/windows/amd64/win-x64.zip
release-build: release-build-mac-x64 release-build-mac-arm64 release-build-win-x64