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 executableName: mihomo-party
nsis: nsis:
artifactName: ${name}-windows-${version}-${arch}-setup.${ext} artifactName: ${name}-windows-${version}-${arch}-setup.${ext}
shortcutName: ${productName} shortcutName: Mihomo Party
uninstallDisplayName: ${productName} uninstallDisplayName: ${productName}
deleteAppDataOnUninstall: true deleteAppDataOnUninstall: true
allowToChangeInstallationDirectory: true allowToChangeInstallationDirectory: true

View File

@ -70,9 +70,9 @@ app.whenReady().then(async () => {
optimizer.watchWindowShortcuts(window) optimizer.watchWindowShortcuts(window)
}) })
registerIpcMainHandlers() registerIpcMainHandlers()
await initShortcut()
createWindow() createWindow()
await createTray() await createTray()
await initShortcut()
app.on('activate', function () { app.on('activate', function () {
// On macOS it's common to re-create a window in the app when the // 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. // dock icon is clicked and there are no other windows open.