fix: restore dedicated update repository
This commit is contained in:
@@ -101,4 +101,4 @@ linux:
|
|||||||
# 在线更新:发布到 GitHub Releases(公开仓库,客户端免密钥拉取更新)
|
# 在线更新:发布到 GitHub Releases(公开仓库,客户端免密钥拉取更新)
|
||||||
publish:
|
publish:
|
||||||
provider: generic
|
provider: generic
|
||||||
url: https://up.tokendun.cc/backup-bot/backup/releases/download/latest
|
url: https://up.tokendun.cc/mhgmh/codex-market-app/releases/download/latest
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ const { extractZip } = require("./zip");
|
|||||||
const hotstate = require("./hotstate");
|
const hotstate = require("./hotstate");
|
||||||
|
|
||||||
const UA = "codex-market";
|
const UA = "codex-market";
|
||||||
const OWNER = "backup-bot";
|
const OWNER = "mhgmh";
|
||||||
const REPO = "backup";
|
const REPO = "codex-market-app";
|
||||||
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
|
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
|
||||||
const HOT_TAG = "hot";
|
const HOT_TAG = "hot";
|
||||||
// 可选 ed25519 公钥(SPKI PEM)。留空则只做 sha256 校验;填入后强制校验签名。
|
// 可选 ed25519 公钥(SPKI PEM)。留空则只做 sha256 校验;填入后强制校验签名。
|
||||||
|
|||||||
+2
-2
@@ -280,8 +280,8 @@ function sendUpdate(channel, data) {
|
|||||||
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send(channel, data);
|
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send(channel, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
const UPDATE_OWNER = "backup-bot";
|
const UPDATE_OWNER = "mhgmh";
|
||||||
const UPDATE_REPO = "backup";
|
const UPDATE_REPO = "codex-market-app";
|
||||||
// 自建 gitea 发布源(国内可达、匿名可读):完整包更新和热更都走这里。
|
// 自建 gitea 发布源(国内可达、匿名可读):完整包更新和热更都走这里。
|
||||||
// up 域名给 API/直连,update 域名给用户浏览下载页(管理登录会话在此)。
|
// up 域名给 API/直连,update 域名给用户浏览下载页(管理登录会话在此)。
|
||||||
const GITEA_RELEASES_API = `https://up.tokendun.cc/api/v1/repos/${UPDATE_OWNER}/${UPDATE_REPO}/releases/latest`;
|
const GITEA_RELEASES_API = `https://up.tokendun.cc/api/v1/repos/${UPDATE_OWNER}/${UPDATE_REPO}/releases/latest`;
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "codex-market",
|
"name": "codex-market",
|
||||||
"version": "1.5.7",
|
"version": "1.5.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codex-market",
|
"name": "codex-market",
|
||||||
"version": "1.5.7",
|
"version": "1.5.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-updater": "^6.8.9",
|
"electron-updater": "^6.8.9",
|
||||||
|
|||||||
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "codex-market",
|
"name": "codex-market",
|
||||||
"version": "1.5.7",
|
"version": "1.5.8",
|
||||||
"description": "TD工具箱 / 技能商店 / 备份工具 —— 跨平台桌面客户端",
|
"description": "TD工具箱 / 技能商店 / 备份工具 —— 跨平台桌面客户端",
|
||||||
"author": "Codex Market",
|
"author": "Codex Market",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "electron/bootstrap.js",
|
"main": "electron/bootstrap.js",
|
||||||
"hotContentVersion": "1.5.7",
|
"hotContentVersion": "1.5.8",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"dist": "electron-builder",
|
"dist": "electron-builder",
|
||||||
|
|||||||
+1
-1
@@ -1391,7 +1391,7 @@ async function loadVersion() {
|
|||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
// 显示"发现新版本 + 前往下载"链接(Mac 半自动更新)
|
// 显示"发现新版本 + 前往下载"链接(Mac 半自动更新)
|
||||||
const RELEASE_FALLBACK = "https://update.tokendun.cc/backup-bot/backup/releases";
|
const RELEASE_FALLBACK = "https://update.tokendun.cc/mhgmh/codex-market-app/releases";
|
||||||
const updateModal = $("#update-modal");
|
const updateModal = $("#update-modal");
|
||||||
let updateMandatory = false;
|
let updateMandatory = false;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ if (!token) {
|
|||||||
}
|
}
|
||||||
if (!token) { console.error("缺少 gitea token:设置 GIT_TOKEN 或写入 ~/.tokendun-git-token"); process.exit(1); }
|
if (!token) { console.error("缺少 gitea token:设置 GIT_TOKEN 或写入 ~/.tokendun-git-token"); process.exit(1); }
|
||||||
|
|
||||||
const OWNER = "backup-bot", REPO = "backup", TAG = "hot";
|
const OWNER = "mhgmh", REPO = "codex-market-app", TAG = "hot";
|
||||||
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
|
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
|
||||||
const DL = `https://up.tokendun.cc/${OWNER}/${REPO}/releases/download/${TAG}`;
|
const DL = `https://up.tokendun.cc/${OWNER}/${REPO}/releases/download/${TAG}`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user