Files
magpie/build/windows/winres.json
T
yetone 712d3c20ae build: the Windows app's icon group is resource 3, the one Wails gives its window, so the taskbar shows the bird and not a blank page (#1777)
Wails v3 sets a Windows window's icon from the icon group with numeric
resource ID 3 (NewIconFromResource(GetModuleHandle(""), 3) in
webview_window_windows.go). build/windows/winres.json named the group
"APP", and go-winres makes a numeric ID only of a "#n" key, so the exe
had no group 3: the window got no icon, and the taskbar and Alt-Tab drew
Windows' blank page. The group is now "#3".

internal/cli/winres_test.go fails while the group isn't under "#3".

Run:
- go-winres v0.3.3 make as the Makefile's release-windows, an amd64 build
  of each on the Windows box (yeton@10.0.0.132): the new exe has group 3
  and LoadImage(3) succeeds; the old one has neither.
- TestWindowsIconIsResourceThree red on the old winres.json, green now.
- gofmt -l, go vet ./..., GOOS=linux go vet -tags nogui ./...,
  GOOS=windows go vet ./..., sandboxed go test ./... at the rebased head.
Not run: the taskbar of the running app seen with the eye; the release
build (signed) wasn't made.
2026-10-12 22:55:22 +08:00

46 lines
1.2 KiB
JSON

{
"RT_GROUP_ICON": {
"#3": {
"0000": ["icon-256.png", "icon-128.png", "icon-64.png", "icon-48.png", "icon-32.png", "icon-16.png"]
}
},
"RT_MANIFEST": {
"#1": {
"0409": {
"identity": { "name": "ai.usemagpie.magpie", "version": "" },
"description": "magpie",
"minimum-os": "win10",
"execution-level": "as invoker",
"ui-access": false,
"auto-elevate": false,
"dpi-awareness": "per monitor v2",
"disable-theming": false,
"disable-window-filtering": false,
"high-resolution-scrolling-aware": false,
"ultra-high-resolution-scrolling-aware": false,
"long-path-aware": true,
"printer-driver-isolation": false,
"gdi-scaling": false,
"segment-heap": false,
"use-common-controls-v6": true
}
}
},
"RT_VERSION": {
"#1": {
"0000": {
"fixed": { "file_version": "0.0.0.0", "product_version": "0.0.0.0" },
"info": {
"0409": {
"CompanyName": "magpie",
"FileDescription": "magpie",
"LegalCopyright": "© 2026 yetone · MIT",
"OriginalFilename": "magpie.exe",
"ProductName": "magpie"
}
}
}
}
}
}