From 6fd9f9a1e9c022a0e90d3ff304e45d602db8b33f Mon Sep 17 00:00:00 2001 From: Benji Rewis Date: Wed, 1 Oct 2025 15:22:49 -0400 Subject: [PATCH] RSDK-12072 Hardcode GOARCH in make windows target --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6e0d210c3f6..e00b39ca853 100644 --- a/Makefile +++ b/Makefile @@ -99,8 +99,8 @@ full-static: # should be kept in sync with the windows build in the BuildViamServer helper in testutils/file_utils.go windows: mkdir -p bin/windows - GOOS=windows go build -tags no_cgo $(GCFLAGS) -ldflags="-extldflags=-static $(COMMON_LDFLAGS)" -o bin/windows/viam-server-$(shell go env GOARCH).exe ./web/cmd/server - cd bin/windows && zip viam.zip viam-server-$(shell go env GOARCH).exe + GOOS=windows GOARCH=amd64 go build -tags no_cgo $(GCFLAGS) -ldflags="-extldflags=-static $(COMMON_LDFLAGS)" -o bin/windows/viam-server-amd64.exe ./web/cmd/server + cd bin/windows && zip viam.zip viam-server-amd64.exe server-static-compressed: server-static upx --best --lzma $(BIN_OUTPUT_PATH)/viam-server