mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Use a string for setting the update channel (#2127)
* Adjusted config option * Accept new config value
This commit is contained in:
parent
300f7cbde4
commit
6b886afc36
2 changed files with 13 additions and 4 deletions
|
|
@ -17,7 +17,16 @@ function init() {
|
|||
});
|
||||
|
||||
const config = getConfig();
|
||||
const updatePrefix = config.canaryUpdates ? 'releases-canary' : 'releases';
|
||||
|
||||
// Default to the "stable" update channel
|
||||
let canaryUpdates = false;
|
||||
|
||||
// If defined in the config, switch to the "canary" channel
|
||||
if (config.updateChannel && config.updateChannel === 'canary') {
|
||||
canaryUpdates = true;
|
||||
}
|
||||
|
||||
const updatePrefix = canaryUpdates ? 'releases-canary' : 'releases';
|
||||
const feedURL = `https://${updatePrefix}.hyper.is/update/${platform}`;
|
||||
|
||||
autoUpdater.setFeedURL(`${feedURL}/${version}`);
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
module.exports = {
|
||||
config: {
|
||||
// Choose either `false` for receiving highly polished,
|
||||
// or `true` for less polished but more frequent updates
|
||||
canaryUpdates: false,
|
||||
// Choose either "stable" for receiving highly polished,
|
||||
// or "canary" for less polished but more frequent updates
|
||||
updateChannel: 'stable',
|
||||
|
||||
// default font size in pixels for all tabs
|
||||
fontSize: 12,
|
||||
|
|
|
|||
Loading…
Reference in a new issue