diff --git a/electron/addon/tray/index.js b/electron/addon/tray/index.js index 57dbdf89..106f06f6 100644 --- a/electron/addon/tray/index.js +++ b/electron/addon/tray/index.js @@ -62,6 +62,9 @@ class TrayAddon { this.tray.setToolTip(cfg.title); const contextMenu = Menu.buildFromTemplate(trayMenuTemplate); this.tray.setContextMenu(contextMenu); + this.tray.on('double-click', () => { + mainWindow.show() + }) } } diff --git a/package.json b/package.json index d9614ad7..5dfdc77c 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "build-w-32": "electron-builder --config=./electron/config/builder.json -w=nsis --ia32", "build-w-64": "electron-builder --config=./electron/config/builder.json -w=nsis --x64", "build-w-arm64": "electron-builder --config=./electron/config/builder.json -w=nsis --arm64", + "build-we": "electron-builder --config=./electron/config/builder.json -w=portable --x64", "build-wz": "electron-builder --config=./electron/config/builder.json -w=7z --x64", "build-wz-32": "electron-builder --config=./electron/config/builder.json -w=7z --ia32", "build-wz-64": "electron-builder --config=./electron/config/builder.json -w=7z --x64", @@ -59,4 +60,4 @@ "electron-updater": "^5.3.0", "lodash": "^4.17.21" } -} +} \ No newline at end of file