FEAT: icon exe = favicon cua app — favicon.svg -> PNG -> ICO (6 sizes 16-128)

- engine.spec: icon='src-tauri/icons/favicon.ico' (cung nguon voi icon hien thi trong app, truoc day dung icon.ico mac dinh khac favicon)
- tools/gen_favicon_ico.js: script tai sinh ICO tu app/templates/favicon.svg (resvg-js WASM, khong can libcairo)
- Verify: ICO 6 sizes (16/24/32/48/64/128), 571 mau, binary chay OK
This commit is contained in:
2026-08-09 02:59:11 +00:00
parent 30a40b2bca
commit 52e1dc6eda
3 changed files with 58 additions and 1 deletions
+3 -1
View File
@@ -124,5 +124,7 @@ exe = EXE(
upx_exclude=[],
runtime_tmpdir=None,
console=False, # True khi debug (xem log truc tiep), False cho production
icon='src-tauri/icons/icon.ico',
# Icon exe = favicon cua app (app/templates/favicon.svg -> render PNG -> ICO,
# sinh boi tools/gen_favicon_ico.py). Cung nguon voi icon hien thi trong app.
icon='src-tauri/icons/favicon.ico',
)