迁移至新觅源码库 — 替换社区链接,保留AI功能
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
} from './paths'
|
||||
|
||||
const execFileAsync = promisify(execFile)
|
||||
const DEFAULT_RUNTIME_BASE_URL = 'https://download.ekkolearnai.com'
|
||||
const DEFAULT_RUNTIME_BASE_URL = 'https://download.www.xinmi.cloud'
|
||||
const RUNTIME_MANIFEST_NAME = 'runtime-manifest.json'
|
||||
const PACKAGED_RUNTIME_RELEASE_NAME = 'runtime-release.json'
|
||||
|
||||
@@ -111,9 +111,9 @@ function runtimeAssetUrl(assetName: string, tag: string): string {
|
||||
const repo = process.env.HERMES_DESKTOP_RUNTIME_REPO?.trim()
|
||||
if (repo) {
|
||||
if (tag === 'latest') {
|
||||
return `https://github.com/${repo}/releases/latest/download/${encodeURIComponent(assetName)}`
|
||||
return `https://www.xinmi.cloud/${repo}/releases/latest/download/${encodeURIComponent(assetName)}`
|
||||
}
|
||||
return `https://github.com/${repo}/releases/download/${encodeURIComponent(tag)}/${encodeURIComponent(assetName)}`
|
||||
return `https://www.xinmi.cloud/${repo}/releases/download/${encodeURIComponent(tag)}/${encodeURIComponent(assetName)}`
|
||||
}
|
||||
|
||||
const template = process.env.HERMES_DESKTOP_RUNTIME_BASE_URL?.trim() || DEFAULT_RUNTIME_BASE_URL
|
||||
|
||||
@@ -6,8 +6,8 @@ let initialized = false
|
||||
let checking = false
|
||||
let updateDownloaded = false
|
||||
|
||||
const LATEST_RELEASE_URL = 'https://api.github.com/repos/EKKOLearnAI/hermes-web-ui/releases/latest'
|
||||
const CLOUDFLARE_DOWNLOAD_BASE_URL = 'https://download.ekkolearnai.com'
|
||||
const LATEST_RELEASE_URL = 'https://api.www.xinmi.cloud/repos/EKKOLearnAI/hermes-web-ui/releases/latest'
|
||||
const CLOUDFLARE_DOWNLOAD_BASE_URL = 'https://download.www.xinmi.cloud'
|
||||
|
||||
interface GitHubRelease {
|
||||
tag_name?: string
|
||||
|
||||
Reference in New Issue
Block a user