From 81e812c06540d1bd2636cf70ff7d0edd1bb0e866 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Fri, 21 Jul 2017 09:17:48 +0200 Subject: [PATCH] 32 - 64 always bump --- src/vs/platform/update/electron-main/auto-updater.win32.ts | 2 +- src/vs/platform/update/electron-main/updateFeedUrl.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/platform/update/electron-main/auto-updater.win32.ts b/src/vs/platform/update/electron-main/auto-updater.win32.ts index 71985113909ef..4e18ec88f5e2f 100644 --- a/src/vs/platform/update/electron-main/auto-updater.win32.ts +++ b/src/vs/platform/update/electron-main/auto-updater.win32.ts @@ -71,7 +71,7 @@ export class Win32AutoUpdaterImpl extends EventEmitter implements IAutoUpdater { private create64BitAutoUpdater(): Win32AutoUpdaterImpl { const result = new Win32AutoUpdaterImpl('x64', this.channel, this.requestService, this.storageService); - result.setFeedURL(getUpdateFeedUrl(this.channel, 'x64')); + result.setFeedURL(getUpdateFeedUrl(this.channel, 'bump', 'x64')); eventNames.forEach(e => forwardEvent(e, result, this)); return result; } diff --git a/src/vs/platform/update/electron-main/updateFeedUrl.ts b/src/vs/platform/update/electron-main/updateFeedUrl.ts index 57c56b974cb21..315d51efe1ffa 100644 --- a/src/vs/platform/update/electron-main/updateFeedUrl.ts +++ b/src/vs/platform/update/electron-main/updateFeedUrl.ts @@ -11,7 +11,7 @@ import product from 'vs/platform/node/product'; export const Win32UninstallPath = path.join(path.dirname(process.execPath), 'unins000.exe'); -export function getUpdateFeedUrl(channel: string, arch: string = process.arch): string { +export function getUpdateFeedUrl(channel: string, commit: string = product.commit, arch: string = process.arch): string { if (!channel) { return null; } @@ -20,13 +20,13 @@ export function getUpdateFeedUrl(channel: string, arch: string = process.arch): return null; } - if (!product.updateUrl || !product.commit) { + if (!product.updateUrl || !commit) { return null; } const platform = getUpdatePlatform(arch); - return `${product.updateUrl}/api/update/${platform}/${channel}/${product.commit}`; + return `${product.updateUrl}/api/update/${platform}/${channel}/${commit}`; } function getUpdatePlatform(arch: string): string {