代码拉取完成,页面将自动刷新
.PHONY: vendor build build-all build-for-windows build-for-linux build-for-mac build-for-windows-amd64 build-for-windows-arm64 build-for-linux-amd64 build-for-linux-arm64 build-for-mac-amd64 build-for-mac-arm64
OUTPUT=output
APP=driver-box
BUILD=go build -o
vendor:
rm -rf $(OUTPUT)/
go mod tidy
go mod vendor
build: vendor build-for-windows build-for-linux build-for-mac
build-for-windows: build-for-windows-amd64 build-for-windows-arm64
build-for-linux: build-for-linux-amd64 build-for-linux-arm64
build-for-mac: build-for-mac-amd64 build-for-mac-arm64
build-for-windows-amd64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-windows-amd64.exe main.go
build-for-windows-arm64:
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 $(BUILD) $(OUTPUT)/$(APP)-windows-arm64.exe main.go
build-for-linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-linux-amd64 main.go
build-for-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(BUILD) $(OUTPUT)/$(APP)-linux-arm64 main.go
build-for-mac-amd64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-mac-amd64 main.go
build-for-mac-arm64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(BUILD) $(OUTPUT)/$(APP)-mac-arm64 main.go
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。