In the latest release, the app icon is not showing correctly (window/taskbar icon falls back to default).
After checking the code, the runtime icon path in src/main.js points to a non-existent location relative to src/.
Current code:
icon: path.join(__dirname, 'assets/icon.png')
Because __dirname resolves to .../src, this path becomes: .../src/assets/icon.png
But the actual icon file is located at: .../assets/icon.png
As a result, Electron cannot find the icon at runtime.
Expected Behavior
The application should display the custom icon (from assets/icon.png) in the app window/taskbar/dock.
Actual Behavior
Default/fallback icon is used instead of the project icon.
Root Cause
Incorrect relative path in BrowserWindow icon configuration.
Proposed Fix
Update the icon path in src/main.js to reference the existing root-level assets folder:
icon: path.join(__dirname, '../assets/icon.png')
Verification
- Verified resolved path points to:
../assets/icon.png
- Verified file exists at that path.
Additional Notes
- This is a minimal one-line fix.
- No other behavior/config changes are required.
In the latest release, the app icon is not showing correctly (window/taskbar icon falls back to default).
After checking the code, the runtime icon path in
src/main.jspoints to a non-existent location relative tosrc/.Current code:
Because
__dirnameresolves to.../src, this path becomes:.../src/assets/icon.pngBut the actual icon file is located at:
.../assets/icon.pngAs a result, Electron cannot find the icon at runtime.
Expected Behavior
The application should display the custom icon (from
assets/icon.png) in the app window/taskbar/dock.Actual Behavior
Default/fallback icon is used instead of the project icon.
Root Cause
Incorrect relative path in
BrowserWindowicon configuration.Proposed Fix
Update the icon path in
src/main.jsto reference the existing root-levelassetsfolder:Verification
../assets/icon.pngAdditional Notes