Skip to content

Commit

Permalink
32 - 64 always bump
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jul 21, 2017
1 parent b11b3cf commit 81e812c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/vs/platform/update/electron-main/auto-updater.win32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/vs/platform/update/electron-main/updateFeedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 {
Expand Down

0 comments on commit 81e812c

Please sign in to comment.