🐛 Fixed the issue of package icon under Windows
This commit is contained in:
5
bin/options/icon.ts
vendored
5
bin/options/icon.ts
vendored
@@ -155,8 +155,9 @@ export async function handleIcon(options: PakeAppOptions, url?: string) {
|
||||
return defaultPngPath;
|
||||
}
|
||||
|
||||
// If nothing exists, let the error bubble up
|
||||
throw new Error('No default icon found for Windows build');
|
||||
// If nothing exists, return empty string to let merge.ts handle default icon
|
||||
logger.warn('✼ No default icon found, will use pake default.');
|
||||
return '';
|
||||
}
|
||||
|
||||
const iconPath = IS_LINUX
|
||||
|
||||
Reference in New Issue
Block a user