fix(updater): migrate cloud catalog sync and auto-update URLs to yuhuan-dev

This commit is contained in:
fish
2026-11-12 10:03:58 +09:00
parent 1d6a3408db
commit 1b22b05e24
6 changed files with 203 additions and 20 deletions
+8 -4
View File
@@ -57,15 +57,19 @@ export const CSRF_TOKEN = process.env.ANTIGRAVITY_CSRF_TOKEN;
/**
* GitHub 官方云端价格目录与插件发布包地址配置。
*/
export const OFFICIAL_GITHUB_REPO = 'yuhuan-dev/antigravity-usage-monitor';
export const LEGACY_GITHUB_REPOS = Object.freeze([
'yuhuan2498281558/antigravity-usage-monitor',
]);
export const CLOUD_CATALOG_URLS = [
'https://raw.githubusercontent.com/yuhuan2498281558/antigravity-usage-monitor/main/pricing-catalog.json',
`https://raw.githubusercontent.com/${OFFICIAL_GITHUB_REPO}/main/pricing-catalog.json`,
];
export const DEFAULT_RELEASE_URL =
'https://github.com/yuhuan2498281558/antigravity-usage-monitor/releases/latest';
`https://github.com/${OFFICIAL_GITHUB_REPO}/releases/latest`;
export const DEFAULT_DOWNLOAD_URL =
'https://github.com/yuhuan2498281558/antigravity-usage-monitor/releases/latest/download/usage-monitor.zip';
`https://github.com/${OFFICIAL_GITHUB_REPO}/releases/latest/download/usage-monitor.zip`;
export const DEFAULT_ARCHIVE_FALLBACK_URL =
'https://codeload.github.com/yuhuan2498281558/antigravity-usage-monitor/zip/refs/heads/main';
`https://codeload.github.com/${OFFICIAL_GITHUB_REPO}/zip/refs/heads/main`;
/** 云端目录常规自动检查间隔(6 小时)与失败冷却时间(5 分钟)。 */
export const CLOUD_SYNC_TTL_MS = 6 * 3600 * 1000;