fix: use absolute icon path and place icon outside asar on Linux

The hicolor icon theme index only lists sizes up to 512x512, so an icon
installed only at 1024x1024 is invisible to GNOME/KDE's theme resolver,
causing both the app launcher and taskbar to show a generic icon.
Additionally, BrowserWindow.icon cannot be read by the window manager
when the file is inside app.asar.

- extraResources: copy logo_larger.png to resources/ (outside asar) so
  it lands at /opt/Automaker/resources/logo_larger.png on install
- linux.desktop.Icon: set to the absolute resources path, bypassing the
  hicolor theme lookup and its size constraints entirely
- icon-manager.ts: on Linux production use process.resourcesPath so
  BrowserWindow receives a real filesystem path the WM can read directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DhanushSantosh
2026-02-26 17:49:26 +05:30
parent 70c9fd77f6
commit 82e9396cb8
2 changed files with 20 additions and 8 deletions

View File

@@ -202,6 +202,10 @@
"filter": [
"**/*"
]
},
{
"from": "public/logo_larger.png",
"to": "logo_larger.png"
}
],
"mac": {
@@ -261,7 +265,10 @@
"maintainer": "webdevcody@gmail.com",
"executableName": "automaker",
"description": "An autonomous AI development studio that helps you build software faster using AI-powered agents",
"synopsis": "AI-powered autonomous development studio"
"synopsis": "AI-powered autonomous development studio",
"desktop": {
"Icon": "/opt/Automaker/resources/logo_larger.png"
}
},
"rpm": {
"depends": [