Compare commits
1 Commits
v0.4.4-dem
...
v0.4.5-dem
| Author | SHA1 | Date | |
|---|---|---|---|
| 448fba8770 |
@@ -71,7 +71,7 @@ Push-Location (Join-Path $root "desktop")
|
||||
# from brand/loyaly-icon-512.png), and `wails build` would add a second copy
|
||||
# of both and fail the link with duplicate resources.
|
||||
$env:CGO_ENABLED = "0"
|
||||
go build -ldflags "-H windowsgui -X main.version=$Version" -o (Join-Path $root "desktop\build\bin\Behavision.exe") .
|
||||
go build -tags desktop,production -ldflags "-H windowsgui -X main.version=$Version" -o (Join-Path $root "desktop\build\bin\Behavision.exe") .
|
||||
if ($LASTEXITCODE -ne 0) { throw "desktop build failed" }
|
||||
Pop-Location
|
||||
|
||||
|
||||
@@ -32,7 +32,10 @@ fi
|
||||
step "1. Desktop app (Wails, pure-Go Windows target)"
|
||||
(cd desktop/frontend && npm run build >/dev/null)
|
||||
rm -rf "$STAGE" && mkdir -p "$STAGE/engine-src"
|
||||
(cd desktop && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath \
|
||||
# -tags desktop,production is what `wails build` passes; without them the
|
||||
# binary starts, shows "Wails applications will not build without the correct
|
||||
# build tags" and exits. Measured on the first Windows install of v0.4.4-demo.
|
||||
(cd desktop && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -tags desktop,production \
|
||||
-ldflags "-H windowsgui -s -w -X main.version=$TAG" -o "../$STAGE/Behavision.exe" .)
|
||||
|
||||
step "2. Agent and setup tool"
|
||||
|
||||
Reference in New Issue
Block a user