feat(build): 程序图标使用原版素材 logo + 安装器运行/快捷方式选项

- scripts/make_icon.ps1:素材包 pack.png → go-winres 生成 icon.syso
  (嵌入 exe 图标与版本信息);窗口图标运行时 SetWindowIcon
- 安装.bat:桌面快捷方式 [Y/n](默认 Y)、安装后立即运行 [Y/n](默认 Y)
- build.ps1 在 syso 缺失时自动生成图标
This commit is contained in:
NianGao Dev
2026-08-16 23:23:31 +08:00
parent b0b632df05
commit 9e7d4d20e2
8 changed files with 83 additions and 6 deletions

BIN
cmd/client/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
cmd/client/icon.syso Normal file

Binary file not shown.

25
cmd/client/winres.json Normal file
View File

@@ -0,0 +1,25 @@
{
"RT_GROUP_ICON": {
"APP": {
"0001": ["icon.png"]
}
},
"RT_VERSION": {
"#1": {
"0000": {
"fixed": {
"file_version": "0.1.0.0",
"product_version": "0.1.0.0"
},
"info": {
"0409": {
"ProductName": "年糕历险记",
"FileDescription": "年糕历险记(NianGao Adventure)",
"CompanyName": "NianGao Dev",
"OriginalFilename": "mc-client.exe"
}
}
}
}
}
}