diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 64525b1f..f550d20f 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -14,6 +14,7 @@ on: - ".gitignore" - ".github/**" - "!.github/workflows/*.yml" + workflow_dispatch: defaults: run: 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'同时开,会显示窗口控制按钮 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 =>