fix icon issue on macos

This commit is contained in:
Boof2015
2026-04-22 15:41:18 -04:00
parent 580633defe
commit f31838dcfe
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ function getStaticWindowIconOptions(): Pick<BrowserWindowConstructorOptions, 'ic
}
function applyStaticDockIcon(): void {
if (process.platform !== 'darwin') {
if (process.platform !== 'darwin' || app.isPackaged) {
return
}
+1
View File
@@ -2449,6 +2449,7 @@ test('toolbar uses the Prism logo support link and static package icons are conf
assert.match(mainSource, /nativeImage/)
assert.match(mainSource, /function applyStaticDockIcon\(\)/)
assert.match(mainSource, /process\.platform !== 'darwin' \|\| app\.isPackaged/)
assert.match(mainSource, /app\.dock\?\.setIcon\(icon\)/)
assert.match(mainSource, /applyStaticDockIcon\(\)/)
assert.match(mainSource, /function getStaticWindowIconOptions\(\)/)