Skip to content

Commit

Permalink
将更新地址指向汉化版
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Aug 28, 2024
1 parent 3907914 commit a4b317e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions script/dist-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,17 @@ export function getUpdatesURL() {
// original URL without architecture in it (which will still work for
// compatibility reasons) in case anything goes wrong until we have everything
// sorted out.
const architecturePath = getDistArchitecture() === 'arm64' ? 'arm64/' : ''
return `https://central.github.com/api/deployments/desktop/desktop/${architecturePath}latest?version=${version}&env=${getChannel()}`
// const architecturePath = getDistArchitecture() === 'arm64' ? 'arm64/' : ''
// return `https://central.github.com/api/deployments/desktop/desktop/${architecturePath}latest?version=${version}&env=${getChannel()}`
if (process.platform === 'win32') {
return `https://zetaloop.github.io/desktop-metadata/win32-${getDistArchitecture()}-${getChannel()}`
// example: https://zetaloop.github.io/desktop-metadata/win32-x64-production/RELEASES
} else if (process.platform === 'darwin') {
return `https://zetaloop.github.io/desktop-metadata/darwin-${getDistArchitecture()}-${getChannel()}/releases.json`
// example: https://zetaloop.github.io/desktop-metadata/darwin-arm64-production/releases.json
} else {
throw new Error(`No updates available for platform: ${process.platform}`)
}
}

export function shouldMakeDelta() {
Expand Down

0 comments on commit a4b317e

Please sign in to comment.