File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 42
42
},
43
43
"autoLaunchPath": "",
44
44
"userDataPath": "",
45
- "chromeFlags": ""
45
+ "chromeFlags": "",
46
+ "betaAutoUpdateChannelEnabled": true
46
47
}
Original file line number Diff line number Diff line change @@ -222,11 +222,21 @@ export class AutoUpdate {
222
222
} ;
223
223
224
224
private getGenericServerOptions = ( ) : GenericServerOptions => {
225
- const { autoUpdateChannel } = config . getConfigFields ( [ 'autoUpdateChannel' ] ) ;
225
+ let userAutoUpdateChannel ;
226
+ const { autoUpdateChannel, betaAutoUpdateChannelEnabled } =
227
+ config . getConfigFields ( [
228
+ 'autoUpdateChannel' ,
229
+ 'betaAutoUpdateChannelEnabled' ,
230
+ ] ) ;
231
+ userAutoUpdateChannel = betaAutoUpdateChannelEnabled
232
+ ? 'beta'
233
+ : autoUpdateChannel ;
234
+ logger . info ( `auto-update-handler: using channel ${ userAutoUpdateChannel } ` ) ;
235
+
226
236
const opts : GenericServerOptions = {
227
237
provider : 'generic' ,
228
238
url : this . getUpdateUrl ( ) ,
229
- channel : autoUpdateChannel || null ,
239
+ channel : userAutoUpdateChannel || null ,
230
240
} ;
231
241
return opts ;
232
242
} ;
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export interface IConfig {
60
60
startedAfterAutoUpdate ?: boolean ;
61
61
enableBrowserLogin ?: boolean ;
62
62
browserLoginAutoConnect ?: boolean ;
63
+ betaAutoUpdateChannelEnabled ?: boolean ;
63
64
}
64
65
65
66
export interface IGlobalConfig {
@@ -99,6 +100,7 @@ export interface IPodLevelEntitlements {
99
100
}
100
101
101
102
export interface IACPFeatureLevelEntitlements {
103
+ betaAutoUpdateChannelEnabled : boolean ;
102
104
devToolsEnabled : boolean ;
103
105
permissions : IPermission ;
104
106
}
@@ -449,6 +451,8 @@ class Config {
449
451
autoLaunchPath : latestGlobalConfig . autoLaunchPath ,
450
452
userDataPath : latestGlobalConfig . userDataPath ,
451
453
customFlags : latestGlobalConfig . customFlags ,
454
+ betaAutoUpdateChannelEnabled :
455
+ latestGlobalConfig . betaAutoUpdateChannelEnabled ,
452
456
} ) ;
453
457
}
454
458
You can’t perform that action at this time.
0 commit comments