diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 07:13:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 07:13:19 -0500 |
| commit | bb894f7f9404704f8098758319fb88f030f17d90 (patch) | |
| tree | 03ad6ab72de85f27c1260fa6db3f6b5e548b4833 /Makefile | |
| parent | b0a1247ffa93dfc2c27cf9c8aab97a4ce97cfeef (diff) | |
fix darwin builds
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,5 @@ +.PHONY: build + VERSION = $(shell git describe --tags) GUIVERSION = $(shell git describe --tags) # BUILDTIME = $(shell date +%Y.%m.%d) @@ -5,6 +7,8 @@ BUILDTIME = $(shell date +%s) all: install +build-all-oses: go-build build-darwin build-windows + go-build: goimports GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" @@ -17,6 +21,18 @@ install: goimports GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" +build-darwin: + GOOS=darwin GOARCH=amd64 GO111MODULE=off go build -v -o wit-darwin.x86 \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +build-darwin-arm64: + GOOS=darwin GOARCH=arm64 GO111MODULE=off go build -v -o wit-darwin.arm \ + -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +build-windows: + GOOS=windows GOARCH=amd64 GO111MODULE=off go build -v -o wit.exe \ + -ldflags "-X main.VERSION=v0.7.46 -X main.BUILDTIME=2025.02.22_0643 -X gui.GUIVERSION=v0.7.46" + vet: GO111MODULE=off go vet |
