Skip to content

v1.0.21

Choose a tag to compare

@KAYOYAK KAYOYAK released this 07 Nov 12:45
· 79 commits to main since this release

快捷方式改用独立 app.ico,绕开 exe 图标缓存。

窗口和任务栏上一版已修好,但 .exe 和快捷方式还显示 Python 默认图标。查证发现 exe 里的图标资源其实是对的(ExtractAssociatedIcon 提取出来是橙色终端),快捷方式也指向正确的 exe —— 是 Windows 缓存了旧的 exe 图标索引(这个 exe 路径之前被关联成 Python),ie4uinit -show 刷不动它。

改法:快捷方式 IconLocation 不再指向 exe,0,改成指向安装时复制到安装目录的独立 app.ico。换成 .ico 文件后 Windows 会重新读取,不受 exe 图标索引缓存影响。副作用是好的 —— 以后换图标只替换那个文件,不用重打 exe。

新增 tools/refresh-icon-cache.ps1:-Gentle 只跑 ie4uinit -show;默认模式删 iconcache_*.db + 重启 explorer 强制重建(桌面会闪 2 秒)。