mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-26 04:43:56 +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:
@@ -3,21 +3,30 @@ import { describe, expect, test } from 'bun:test';
|
||||
import { resolveWindowIconPath } from '@main/windows/appIcon';
|
||||
|
||||
describe('resolveWindowIconPath', () => {
|
||||
test('uses the Windows ico asset from the packaged app assets directory', () => {
|
||||
test('uses the Windows ico asset from the platform-specific icon directory', () => {
|
||||
expect(
|
||||
resolveWindowIconPath({
|
||||
appPath: 'C:\\workspace\\personal\\repositories\\kopaya',
|
||||
platform: 'win32',
|
||||
}),
|
||||
).toBe('C:\\workspace\\personal\\repositories\\kopaya\\assets\\icons\\app-icon.ico');
|
||||
).toBe('C:\\workspace\\personal\\repositories\\kopaya\\assets\\icons\\windows\\icon.ico');
|
||||
});
|
||||
|
||||
test('uses the PNG asset on non-Windows platforms', () => {
|
||||
test('uses the macOS icns asset on Darwin', () => {
|
||||
expect(
|
||||
resolveWindowIconPath({
|
||||
appPath: '/Applications/Kopaya.app/Contents/Resources/app',
|
||||
platform: 'darwin',
|
||||
}),
|
||||
).toBe('/Applications/Kopaya.app/Contents/Resources/app/assets/icons/app-icon.png');
|
||||
).toBe('/Applications/Kopaya.app/Contents/Resources/app/assets/icons/macos/icon.icns');
|
||||
});
|
||||
|
||||
test('uses the Linux 512px PNG asset on Linux', () => {
|
||||
expect(
|
||||
resolveWindowIconPath({
|
||||
appPath: '/opt/kopaya/resources/app',
|
||||
platform: 'linux',
|
||||
}),
|
||||
).toBe('/opt/kopaya/resources/app/assets/icons/linux/icons/512x512.png');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user