File size: 620 Bytes
893fb77 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
.PHONY: build
build: build-linux-amd64 build-linux-arm64 build-darwin-arm64
build-darwin-arm64:
@rm -rf build || true
@mkdir -p build || true
@go mod tidy
@CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o build/monica .
build-linux-amd64:
@rm -rf build || true
@mkdir -p build || true
@go mod tidy
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o build/monica .
@upx -7 build/monica
build-linux-arm64:
@rm -rf build || true
@mkdir -p build || true
@go mod tidy
@CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o build/monica .
@upx -7 build/monica |