chore: refresh app icons

Update the Electron icon wiring to use the new assets/icons layout, remove the old app-icon files, and keep Windows packaging pointed at the new platform-specific ico.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-23 21:40:08 +01:00
co-authored by Copilot
parent da72e49f2c
commit 4719ebb9d5
28 changed files with 26 additions and 10 deletions
+10 -3
View File
@@ -11,7 +11,14 @@ function getPathModule(platform: NodeJS.Platform) {
export function resolveWindowIconPath(context: WindowIconPathContext): string {
const pathModule = getPathModule(context.platform);
const iconFileName = context.platform === 'win32' ? 'app-icon.ico' : 'app-icon.png';
return pathModule.join(context.appPath, 'assets', 'icons', iconFileName);
switch (context.platform) {
case 'win32':
return pathModule.join(context.appPath, 'assets', 'icons', 'windows', 'icon.ico');
case 'darwin':
return pathModule.join(context.appPath, 'assets', 'icons', 'macos', 'icon.icns');
case 'linux':
return pathModule.join(context.appPath, 'assets', 'icons', 'linux', 'icons', '512x512.png');
default:
return pathModule.join(context.appPath, 'assets', 'icons', 'icon.png');
}
}