mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-08 18:08:33 +00:00
add preference to set a custom update url (#865)
This commit is contained in:
committed by
GitHub
parent
baa9b5f7ab
commit
5979e5aad2
@@ -280,7 +280,8 @@ export class ArduinoFrontendContribution
|
||||
}
|
||||
|
||||
this.updaterService.init(
|
||||
this.arduinoPreferences.get('arduino.ide.updateChannel')
|
||||
this.arduinoPreferences.get('arduino.ide.updateChannel'),
|
||||
this.arduinoPreferences.get('arduino.ide.updateBaseUrl')
|
||||
);
|
||||
this.updater.checkForUpdates(true).then(async (updateInfo) => {
|
||||
if (!updateInfo) return;
|
||||
|
||||
@@ -78,6 +78,14 @@ export const ArduinoConfigSchema: PreferenceSchema = {
|
||||
"Release channel to get updated from. 'stable' is the stable release, 'nightly' is the latest development build."
|
||||
),
|
||||
},
|
||||
'arduino.ide.updateBaseUrl': {
|
||||
type: 'string',
|
||||
default: 'https://downloads.arduino.cc/arduino-ide',
|
||||
description: nls.localize(
|
||||
'arduino/preferences/ide.updateBaseUrl',
|
||||
`The base URL where to download updates from. Defaults to 'https://downloads.arduino.cc/arduino-ide'`
|
||||
),
|
||||
},
|
||||
'arduino.board.certificates': {
|
||||
type: 'string',
|
||||
description: nls.localize(
|
||||
@@ -178,6 +186,7 @@ export interface ArduinoConfiguration {
|
||||
'arduino.window.autoScale': boolean;
|
||||
'arduino.window.zoomLevel': number;
|
||||
'arduino.ide.updateChannel': UpdateChannel;
|
||||
'arduino.ide.updateBaseUrl': string;
|
||||
'arduino.board.certificates': string;
|
||||
'arduino.sketchbook.showAllFiles': boolean;
|
||||
'arduino.cloud.enabled': boolean;
|
||||
|
||||
Reference in New Issue
Block a user