From 34431dc7b7097c594f35e3b50720bc1088480317 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Sat, 24 Aug 2024 17:11:33 +0800 Subject: [PATCH] change shortcut name --- electron-builder.yml | 2 +- src/main/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.