From f2bd9df77fb6d435ccf9493b11e8143a24fde16e Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 28 Apr 2025 21:58:32 -0300 Subject: [PATCH 1/4] fix: use orderBy instead of sortBy to correctly sort games on system tray --- src/main/services/window-manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index b3d3ff37..9841eb6e 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -16,7 +16,7 @@ import trayIcon from "@resources/tray-icon.png?asset"; import { HydraApi } from "./hydra-api"; import UserAgent from "user-agents"; import { db, gamesSublevel, levelKeys } from "@main/level"; -import { slice, sortBy } from "lodash-es"; +import { orderBy, slice } from "lodash-es"; import type { ScreenState, UserPreferences } from "@types"; import { AuthPage } from "@shared"; import { isStaging } from "@main/constants"; @@ -370,9 +370,9 @@ export class WindowManager { !game.isDeleted && game.executablePath && game.lastTimePlayed ); - const sortedGames = sortBy(filteredGames, "lastTimePlayed", "DESC"); + const sortedGames = orderBy(filteredGames, "lastTimePlayed", "desc"); - return slice(sortedGames, 0, 5); + return slice(sortedGames, 0, 6); }); const recentlyPlayedGames: Array = From 66094c0aa2f2c64a83de51eba516801e1ccecf91 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:01:55 -0300 Subject: [PATCH 2/4] chore: test get package.json version --- .github/workflows/lint.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0a20e469..69ac96c2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -33,3 +33,12 @@ jobs: - name: Format check run: yarn format-check + + - name: test action + id: get-version + uses: beaconbrigade/package-json-version@v0.3.2 + with: + path: . + + - name: Print the version + run: echo "The version was ${{ steps.get-version.outputs.version }}" From aa83d38b85b52b7e8e7a78f3e10018416ff7858e Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:09:58 -0300 Subject: [PATCH 3/4] chore: add tag_name to release ci --- .github/workflows/lint.yml | 9 --------- .github/workflows/release.yml | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 69ac96c2..0a20e469 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -33,12 +33,3 @@ jobs: - name: Format check run: yarn format-check - - - name: test action - id: get-version - uses: beaconbrigade/package-json-version@v0.3.2 - with: - path: . - - - name: Print the version - run: echo "The version was ${{ steps.get-version.outputs.version }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7098e44..f0991a13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -100,9 +100,16 @@ jobs: GITHUB_ACTOR: ${{ github.actor }} run: node scripts/upload-build.cjs + - name: Get package-json version + id: get-version + uses: beaconbrigade/package-json-version@v0.3.2 + with: + path: . + - name: Release uses: softprops/action-gh-release@v2 with: + tag_name: v${{ steps.get-version.outputs.version }} draft: true files: | dist/*.exe From 6dea51c8e988b9217b329751a3d29e741c76dd43 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:10:12 -0300 Subject: [PATCH 4/4] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06ab6132..77bf5c2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydralauncher", - "version": "3.4.5", + "version": "3.4.6", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas",