The Loyaly mark everywhere a person sees the product
Brand assets in brand/ (the 512px mark, sizes for each surface, a multi-size .ico). Windows executables carry it as a compiled-in resource (rsrc_windows_amd64.syso from go-winres) so Explorer, the taskbar and the installer show it; installer/build.ps1 therefore uses a plain go build rather than wails build, which would add a second copy and fail the link. The tray icon is the mark with a state dot over its corner - a plain coloured circle read as a generic status light among other icons - rendered from the embedded PNG at 32px so it survives 150% scaling. The desktop app's login, setup and sidebar marks, the head-office web app's mark and favicon, and the engine dashboard's favicon are the same file. Also found while packaging: no wheel so far shipped static/, so the engine's own dashboard at :8010 on a Windows source install would have failed with a missing file. package-data now includes it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KGcjxF1cNLcuwc3DAPcnfj
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#define MyAppExeName "Behavision.exe"
|
||||
|
||||
[Setup]
|
||||
; The Loyaly mark, on the installer and in Add/Remove Programs.
|
||||
SetupIconFile=..\brand\loyaly.ico
|
||||
AppId={{7C4B9E2A-3F51-4C86-9D0A-B1E7A2F65D11}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
|
||||
@@ -66,15 +66,13 @@ npm run build
|
||||
Pop-Location
|
||||
Push-Location (Join-Path $root "desktop")
|
||||
# Wails v2 talks to WebView2 through pure-Go bindings, so no cgo and no
|
||||
# toolchain beyond Go itself. Verified by cross-compiling the same package from
|
||||
# a Mac with CGO_ENABLED=0.
|
||||
# toolchain beyond Go itself. A plain go build is used on purpose: the icon
|
||||
# and the manifest are compiled in from rsrc_windows_amd64.syso (go-winres,
|
||||
# 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"
|
||||
if (Get-Command wails -ErrorAction SilentlyContinue) {
|
||||
wails build -platform windows/amd64 -clean -ldflags "-X main.version=$Version"
|
||||
} else {
|
||||
Write-Warning "wails CLI not found - falling back to a plain go build (no icon, no manifest)."
|
||||
go build -ldflags "-H windowsgui -X main.version=$Version" -o (Join-Path $root "desktop\build\bin\Behavision.exe") .
|
||||
}
|
||||
go build -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
|
||||
|
||||
Step "Headless agent"
|
||||
|
||||
Reference in New Issue
Block a user