diff --git a/electron-builder.yml b/electron-builder.yml index cb36fa8..c558f6f 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -34,7 +34,7 @@ win: executableName: mihomo-party nsis: artifactName: ${name}-windows-${version}-${arch}-setup.${ext} - shortcutName: ${productName} + shortcutName: Mihomo Party uninstallDisplayName: ${productName} deleteAppDataOnUninstall: true allowToChangeInstallationDirectory: true diff --git a/src/main/index.ts b/src/main/index.ts index 03cdd4d..a99c677 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -70,9 +70,9 @@ app.whenReady().then(async () => { optimizer.watchWindowShortcuts(window) }) registerIpcMainHandlers() - await initShortcut() createWindow() await createTray() + await initShortcut() app.on('activate', function () { // On macOS it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open.