From e899b46bf28859e4b873f82e7a47d3755394268e Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 01:33:52 +0800 Subject: [PATCH 1/4] fix prts.wiki image link --- packages/renderer/src/utils/game_image.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/renderer/src/utils/game_image.ts b/packages/renderer/src/utils/game_image.ts index 1912d0bb..72595a9e 100644 --- a/packages/renderer/src/utils/game_image.ts +++ b/packages/renderer/src/utils/game_image.ts @@ -1,10 +1,10 @@ import { MD5 } from 'crypto-js' -const baseUrl = 'https://prts.wiki/images' +const baseUrl = 'https://media.prts.wiki' const getFileUrl = (filename: string): string => { const hash = String(MD5(filename)) - return `${baseUrl}/${hash[0]}/${hash.substring(0, 2)}/${filename}` + return `${baseUrl}/${hash[0]}/${hash.substring(0, 1)}/${filename}` } export const getOperatorAvatar = (operatorCode: string): string => From 07a1d0ea87f1fedbcc3076c04fd2bc6c6280ad8f Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 11:12:10 +0800 Subject: [PATCH 2/4] try fix no windows control button on linux --- packages/main/windowManager/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/main/windowManager/index.ts b/packages/main/windowManager/index.ts index 5b17b1c7..1891c32c 100644 --- a/packages/main/windowManager/index.ts +++ b/packages/main/windowManager/index.ts @@ -13,7 +13,7 @@ class WindowManager implements Module { constructor() { this.window_ = new BrowserWindow({ backgroundColor: '#00000000', - frame: getPlatform() === 'macos', + frame: getPlatform() != 'windows', icon: join(__dirname, '../renderer/assets/icon.png'), titleBarOverlay: true, // frameless和titleBarStyle: 'hidden'同时开,会显示窗口控制按钮 From 631b89a9f0fe7d099b3e1ea71fd0f8210f5d39e6 Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 11:15:33 +0800 Subject: [PATCH 3/4] allow ci run manual --- .github/workflows/dev-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 64525b1f..bdec39f8 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -1,7 +1,7 @@ name: "Build/PullRequest" on: - push: + - push: branches: - dev paths-ignore: @@ -14,6 +14,7 @@ on: - ".gitignore" - ".github/**" - "!.github/workflows/*.yml" + - workflow_dispatch defaults: run: From 882c0c8c39eb31b8d653bcaf4a0a9a57dafff406 Mon Sep 17 00:00:00 2001 From: white ice Date: Wed, 22 May 2024 11:26:28 +0800 Subject: [PATCH 4/4] try run ci manual --- .github/workflows/dev-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index bdec39f8..f550d20f 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -1,7 +1,7 @@ name: "Build/PullRequest" on: - - push: + push: branches: - dev paths-ignore: @@ -14,7 +14,7 @@ on: - ".gitignore" - ".github/**" - "!.github/workflows/*.yml" - - workflow_dispatch + workflow_dispatch: defaults: run: