Commit 7ad6dd7
fix: load BrowserWindow icon from resources/ in packaged AppImage
The BrowserWindow icon path resolved correctly in dev (`__dirname` =
src-electron/, so `../src-tauri/icons/icon.png` reached the source tree)
but not in the packaged AppImage, where `__dirname` is inside the asar
and src-tauri/ is not bundled. Electron silently dropped the icon and
the taskbar fell back to the generic Electron icon.
Copy icon.png into the AppImage's resources/ via extraResources, and
load it from process.resourcesPath when app.isPackaged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 616d245 commit 7ad6dd7
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments