File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/vs/platform/update/electron-main Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -81,23 +81,26 @@ export class DarwinUpdateService extends AbstractUpdateService implements IRelau
81
81
}
82
82
83
83
protected buildUpdateFeedUrl ( quality : string ) : string | undefined {
84
- let url : string ;
84
+ let feedUrl : string ;
85
85
86
86
// {{SQL CARBON EDIT}} - Use the metadata files from the Download Center as the update feed.
87
87
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 ;
89
89
} else {
90
- url = this . productService . updateMetadataMacUniversalUrl ;
90
+ feedUrl = this . productService . updateMetadataMacUniversalUrl ;
91
91
}
92
92
93
93
try {
94
- electron . autoUpdater . setFeedURL ( { url } ) ;
94
+ electron . autoUpdater . setFeedURL ( {
95
+ url : feedUrl ,
96
+ serverType : 'json' ,
97
+ } ) ;
95
98
} catch ( e ) {
96
99
// application is very likely not signed
97
100
this . logService . error ( 'Failed to set update feed URL' , e ) ;
98
101
return undefined ;
99
102
}
100
- return url ;
103
+ return feedUrl ;
101
104
}
102
105
103
106
protected doCheckForUpdates ( context : any ) : void {
You can’t perform that action at this time.
0 commit comments