build: pass -tags desktop,production to go build (Wails requirement)
Build / test (push) Failing after 31s
Build / build-windows (push) Has been skipped

Without these tags Wails aborts at startup with a "Wails applications
will not build without the correct build tags" MessageBox. Local
rebuild.sh, the cross-compile step in release.yml, and the windows
build step in build.yml all needed the flag — only the local Wails
dev wrapper was already passing it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-01 16:55:19 +03:00
parent 1c1ab566d9
commit c48bd96369
3 changed files with 18 additions and 2 deletions
+3 -1
View File
@@ -106,7 +106,9 @@ jobs:
# flashes a console window. main.go calls AttachConsole on
# startup so CLI invocations from cmd/PowerShell still print
# to the parent terminal.
go build -trimpath -ldflags="-s -w -H=windowsgui \
# -tags desktop,production is REQUIRED by Wails (see release.yml).
go build -trimpath -tags "desktop,production" \
-ldflags="-s -w -H=windowsgui \
-X main.Version=dev-${SHORT_SHA} \
-X main.Commit=${SHORT_SHA} \
-X main.BuildDate=${BUILD_DATE}" \
+5 -1
View File
@@ -78,7 +78,11 @@ jobs:
# double-click experience doesn't flash a console window. main.go
# calls AttachConsole on startup so CLI runs still print to the
# parent terminal when launched from cmd/PowerShell.
go build -trimpath -ldflags="-s -w -H=windowsgui \
# -tags desktop,production is REQUIRED by Wails — otherwise the
# binary aborts at startup with a "Wails applications will not
# build without the correct build tags" MessageBox.
go build -trimpath -tags "desktop,production" \
-ldflags="-s -w -H=windowsgui \
-X main.Version=${{ steps.version.outputs.version }} \
-X main.Commit=${SHORT_SHA} \
-X main.BuildDate=${BUILD_DATE}" \