mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-28 23:48:39 +02:00
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user