mirror of
https://github.com/davidkaya/aryx.git
synced 2026-12-06 15:16:26 +01: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:
1 parent
da72e49f2c
commit
4719ebb9d5
28 files changed
+26
-10
No files matched your search
@@ -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