diff --git a/.github/workflows/trigger-aur.yml b/.github/workflows/trigger-aur.yml deleted file mode 100644 index f71b0e10..00000000 --- a/.github/workflows/trigger-aur.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Trigger AUR Package Update - -on: - release: - types: [published] - workflow_dispatch: - -jobs: - aur-publish: - runs-on: ubuntu-latest - steps: - - name: Extract version - id: extract_version - run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - env: - GITHUB_REF: ${{ github.ref }} - - - name: Publish AUR package - uses: aksh1618/update-aur-package@v1.0.5 - with: - dry_run: true - version: "$VERSION" - package_name: hydra-launcher-bin - commit_username: "Hydra Launcher" - commit_email: hydralaucher@proton.me - ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index dfcfc3ba..33550040 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -584,7 +584,7 @@ export class WindowManager { tray.setToolTip("Hydra Launcher"); - if (process.platform !== "darwin") { + if (process.platform === "win32") { await updateSystemTray(); tray.addListener("double-click", () => { @@ -595,6 +595,18 @@ export class WindowManager { } }); + tray.addListener("right-click", showContextMenu); + } else if (process.platform === "linux") { + await updateSystemTray(); + + tray.addListener("click", () => { + if (this.mainWindow) { + this.mainWindow.show(); + } else { + this.createMainWindow(); + } + }); + tray.addListener("right-click", showContextMenu); } else { tray.addListener("click", showContextMenu);