rename channels and set pubkey bridge key

This commit is contained in:
Jakub
2020-12-21 11:31:50 +01:00
committed by James Houlahan
parent e8cbbaa832
commit 7b84038bf4
9 changed files with 170 additions and 62 deletions

View File

@ -66,10 +66,10 @@ func New(
curVer *semver.Version,
updateURLName, platform string,
) *Updater {
// If there's some unexpected value in the preferences, we force it back onto the live channel.
// If there's some unexpected value in the preferences, we force it back onto the stable channel.
// This prevents users from screwing up silent updates by modifying their prefs.json file.
if channel := UpdateChannel(s.Get(settings.UpdateChannelKey)); !(channel == LiveChannel || channel == BetaChannel) {
s.Set(settings.UpdateChannelKey, string(LiveChannel))
if channel := UpdateChannel(s.Get(settings.UpdateChannelKey)); !(channel == StableChannel || channel == EarlyChannel) {
s.Set(settings.UpdateChannelKey, string(StableChannel))
}
return &Updater{