fix: tighten server update check handling (#694)
Refine server update-check flow in runtime endpoints Improve package-manager update detection consistency
This commit is contained in:
committed by
GitHub
parent
3123de5f43
commit
74ef18dd4f
@@ -86,11 +86,15 @@ function normalizeArch(value) {
|
||||
async function checkForUpdatesFromApi(currentVersion, options = {}) {
|
||||
try {
|
||||
const appType = normalizeAppType(options.appType);
|
||||
const hostPlatform = mapPlatform(process.platform);
|
||||
const hostArch = mapArch(process.arch);
|
||||
const platform = appType === 'vscode' ? normalizePlatform(options.platform) : hostPlatform;
|
||||
const arch = appType === 'vscode' ? normalizeArch(options.arch) : hostArch;
|
||||
const payload = {
|
||||
appType,
|
||||
deviceClass: normalizeDeviceClass(options.deviceClass),
|
||||
platform: normalizePlatform(options.platform),
|
||||
arch: normalizeArch(options.arch),
|
||||
platform,
|
||||
arch,
|
||||
channel: 'stable',
|
||||
currentVersion,
|
||||
installId: getOrCreateInstallId(appType),
|
||||
|
||||
Reference in New Issue
Block a user