From 3d16d79b647999abfc99b5f8cf773d5d3bc00c39 Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 11:37:12 +0000 Subject: [PATCH 1/2] try fix ci with set pnpm version as 8 --- .github/workflows/dev-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index f550d20f..96db2cb7 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -39,7 +39,7 @@ jobs: - uses: pnpm/action-setup@v3 with: - version: latest + version: 8 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@v4 From 695bb5573357fd4390cce0afd04ea2f7f4ee1557 Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 11:51:33 +0000 Subject: [PATCH 2/2] fix prts.wiki image link --- packages/renderer/src/utils/game_image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/renderer/src/utils/game_image.ts b/packages/renderer/src/utils/game_image.ts index 72595a9e..51a57847 100644 --- a/packages/renderer/src/utils/game_image.ts +++ b/packages/renderer/src/utils/game_image.ts @@ -4,7 +4,7 @@ const baseUrl = 'https://media.prts.wiki' const getFileUrl = (filename: string): string => { const hash = String(MD5(filename)) - return `${baseUrl}/${hash[0]}/${hash.substring(0, 1)}/${filename}` + return `${baseUrl}/${hash[0]}/${hash.substring(0, 2)}/${filename}` } export const getOperatorAvatar = (operatorCode: string): string =>