Skip to content

Commit 8825ec2

Browse files
authored
Fix Mac update loop (#25694) (#25695)
1 parent da85ed3 commit 8825ec2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/vs/platform/update/electron-main/updateService.darwin.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,26 @@ export class DarwinUpdateService extends AbstractUpdateService implements IRelau
8181
}
8282

8383
protected buildUpdateFeedUrl(quality: string): string | undefined {
84-
let url: string;
84+
let feedUrl: string;
8585

8686
// {{SQL CARBON EDIT}} - Use the metadata files from the Download Center as the update feed.
8787
if (!this.productService.darwinUniversalAssetId) {
88-
url = process.arch === 'x64' ? this.productService.updateMetadataMacUrl : this.productService.updateMetadataMacArmUrl;
88+
feedUrl = process.arch === 'x64' ? this.productService.updateMetadataMacUrl : this.productService.updateMetadataMacArmUrl;
8989
} else {
90-
url = this.productService.updateMetadataMacUniversalUrl;
90+
feedUrl = this.productService.updateMetadataMacUniversalUrl;
9191
}
9292

9393
try {
94-
electron.autoUpdater.setFeedURL({ url });
94+
electron.autoUpdater.setFeedURL({
95+
url: feedUrl,
96+
serverType: 'json',
97+
});
9598
} catch (e) {
9699
// application is very likely not signed
97100
this.logService.error('Failed to set update feed URL', e);
98101
return undefined;
99102
}
100-
return url;
103+
return feedUrl;
101104
}
102105

103106
protected doCheckForUpdates(context: any): void {

0 commit comments

Comments
 (0)