From 950e844427466e0bf17515c5e8e915f09bb8e749 Mon Sep 17 00:00:00 2001 From: HoraceHyy Date: Thu, 12 Oct 2023 16:05:10 +0800 Subject: [PATCH] bump version to 2.3.3 --- electron/main/index.ts | 7 +++++-- electron/preload/index.ts | 6 +++--- package.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 9bd279ba..840618b7 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -182,12 +182,15 @@ async function createWindow() { const { Octokit } = require("@octokit/core") const octokit = new Octokit({ // gh-upd-test - auth: "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" + auth: "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" }) ipcMain.handle("github:getLatestRelease", async (_event) => { const result = await octokit.request("GET /repos/horacehuang-ui/mihoyo-mixed-launcher/releases/latest", { owner: "HoraceHuang-ui", - repo: "MiHOYO-MiXED-Launcher" + repo: "MiHOYO-MiXED-Launcher", + headers: { + 'X-GitHub-Api-Version': '2022-11-28' + } }) return result }) diff --git a/electron/preload/index.ts b/electron/preload/index.ts index 3c586162..01291951 100644 --- a/electron/preload/index.ts +++ b/electron/preload/index.ts @@ -136,9 +136,9 @@ function useLoading() { // oDiv.className = "app-loading-wrap"; // oDiv.innerHTML = `
`; - const className = "loaders-css__klee-loading"; + // const className = "loaders-css__klee-loading"; const styleContent = ` - .${className} { + .klee-loading { width: 120px; height: 120px; } @@ -173,7 +173,7 @@ function useLoading() { oStyle.innerHTML = styleContent; oDiv.className = "app-loading-wrap"; oDiv.innerHTML = `
- +
加载中…
` diff --git a/package.json b/package.json index abdbfcb3..670573c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "miXeD", - "version": "2.3.2", + "version": "2.3.3", "main": "dist-electron/main/index.js", "description": "All-in-one MiHOYO game launcher", "author": "HoraceHYY <3214442497@qq.com>",