fix: restore dedicated update repository
This commit is contained in:
@@ -7,8 +7,8 @@ const { extractZip } = require("./zip");
|
||||
const hotstate = require("./hotstate");
|
||||
|
||||
const UA = "codex-market";
|
||||
const OWNER = "backup-bot";
|
||||
const REPO = "backup";
|
||||
const OWNER = "mhgmh";
|
||||
const REPO = "codex-market-app";
|
||||
const API = `https://up.tokendun.cc/api/v1/repos/${OWNER}/${REPO}`;
|
||||
const HOT_TAG = "hot";
|
||||
// 可选 ed25519 公钥(SPKI PEM)。留空则只做 sha256 校验;填入后强制校验签名。
|
||||
|
||||
+2
-2
@@ -280,8 +280,8 @@ function sendUpdate(channel, data) {
|
||||
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send(channel, data);
|
||||
}
|
||||
|
||||
const UPDATE_OWNER = "backup-bot";
|
||||
const UPDATE_REPO = "backup";
|
||||
const UPDATE_OWNER = "mhgmh";
|
||||
const UPDATE_REPO = "codex-market-app";
|
||||
// 自建 gitea 发布源(国内可达、匿名可读):完整包更新和热更都走这里。
|
||||
// up 域名给 API/直连,update 域名给用户浏览下载页(管理登录会话在此)。
|
||||
const GITEA_RELEASES_API = `https://up.tokendun.cc/api/v1/repos/${UPDATE_OWNER}/${UPDATE_REPO}/releases/latest`;
|
||||
|
||||
Reference in New Issue
Block a user