MCPcopy
hub / github.com/desktop/desktop / getUpdatesURL

Function getUpdatesURL

script/dist-info.ts:138–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138export function getUpdatesURL() {
139 // It is also possible to use a `x64/` path, but for now we'll leave the
140 // original URL without architecture in it (which will still work for
141 // compatibility reasons) in case anything goes wrong until we have everything
142 // sorted out.
143 const architecturePath = getDistArchitecture() === 'arm64' ? 'arm64/' : ''
144 return `https://central.github.com/api/deployments/desktop/desktop/${architecturePath}latest?version=${version}&env=${getChannel()}`
145}
146
147export function shouldMakeDelta() {
148 // Only production and beta channels include deltas. Test releases aren't

Callers 2

packageWindowsFunction · 0.90
getReplacementsFunction · 0.90

Calls 2

getDistArchitectureFunction · 0.85
getChannelFunction · 0.85

Tested by

no test coverage detected