Commit Graph
1 Commits
Author SHA1 Message Date
WEP-56 ce3be1886e fix(android): release 包用回 HG 图标(gen/ 不入库导致)
根因:src-tauri/gen/ 在 .gitignore 里,CI 每次干净 checkout 后都会
`tauri android init`,而 init 只写模板自带的默认图标(青黄「8」),
不读 src-tauri/icons/android/;本地因为早先手动拷过一次 res/ 才看着正常。
实测干净 init 后 mipmap-xxxhdpi/ic_launcher_foreground.png 是 40510B 的
Tauri logo,且没有 mipmap-anydpi-v26/ 与 values/ic_launcher_background.xml。

- 新增 scripts/sync-android-icons.mjs:icons/android → gen/android res
- 挂进 tauri.conf.json 的 beforeBuildCommand(pnpm build && node ...),
  CI 的 `tauri android build` 与本地构建都会自动同步
- package.json 加 android:icons 手动入口
2026-11-04 16:30:24 +08:00