diff --git a/apps/desktop-client/src/main/bootstrap.ts b/apps/desktop-client/src/main/bootstrap.ts index 92769e5..35b4d4f 100644 --- a/apps/desktop-client/src/main/bootstrap.ts +++ b/apps/desktop-client/src/main/bootstrap.ts @@ -63,6 +63,24 @@ import { initTray, showTrayBalloon } from './tray' import { STANDARD_USER_AGENT } from './user-agent' import { startHotViewReaper } from './view-pool' +// In dev (no packaged Info.plist / NSIS metadata) Electron falls back to the +// generic "Electron" name, so the macOS menu bar and Windows task switcher +// show "Electron". Pin the dev-time app name to the product brand. Packaged +// builds ignore this because Info.plist `CFBundleName` (driven by +// electron-builder `productName`) takes precedence. +app.setName('ShengxinPush') + +// The macOS "About" panel pulls from a separate options bag — `setName` alone +// leaves it as "Electron 41.x". Set explicit copy here so the dev About dialog +// matches the brand. Packaged macOS again wins via Info.plist. +app.setAboutPanelOptions({ + applicationName: 'ShengxinPush', + applicationVersion: app.getVersion(), + version: app.getVersion(), + copyright: 'Copyright © 2026 shengxintui.com', + website: 'https://shengxintui.com', +}) + app.commandLine.appendSwitch( 'disable-features', 'PostQuantumKyber,EncryptedClientHello,UseDnsHttpsSvcb,UseDnsHttpsSvcbAlpn',