change shortcut name

This commit is contained in:
pompurin404 2024-08-24 17:11:33 +08:00
parent 066475237e
commit 34431dc7b7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.