Remove handling of beta, nightly, add dev

This commit is contained in:
confused-Techie 2024-02-12 16:49:19 -08:00
parent 732d1d40a6
commit b2494b6a56
2 changed files with 5 additions and 7 deletions

View File

@ -600,7 +600,7 @@ class AtomEnvironment {
// Public: Gets the release channel of the Pulsar application. // Public: Gets the release channel of the Pulsar application.
// //
// Returns the release channel as a {String}. Will return a specific release channel // Returns the release channel as a {String}. Will return a specific release channel
// name like 'beta' or 'nightly' if one is found in the Pulsar version or 'stable' // name like 'dev' if one is found in the Pulsar version or 'stable'
// otherwise. // otherwise.
getReleaseChannel() { getReleaseChannel() {
return getReleaseChannel(this.getVersion()); return getReleaseChannel(this.getVersion());
@ -608,7 +608,7 @@ class AtomEnvironment {
// Public: Returns a {Boolean} that is `true` if the current version is an official release. // Public: Returns a {Boolean} that is `true` if the current version is an official release.
isReleasedVersion() { isReleasedVersion() {
return this.getReleaseChannel().match(/stable|beta|nightly/) != null; return this.getReleaseChannel().match(/stable|dev/) != null;
} }
// Public: Get the time taken to completely load the current window. // Public: Get the time taken to completely load the current window.

View File

@ -45,14 +45,12 @@ module.exports = class CommandInstaller {
} }
getCommandNameForChannel(commandName) { getCommandNameForChannel(commandName) {
let channelMatch = this.appVersion.match(/beta|nightly/); let channelMatch = this.appVersion.match(/dev/);
let channel = channelMatch ? channelMatch[0] : ''; let channel = channelMatch ? channelMatch[0] : '';
switch (channel) { switch (channel) {
case 'beta': case 'dev':
return `${commandName}-beta`; return `${commandName}-dev`;
case 'nightly':
return `${commandName}-nightly`;
default: default:
return commandName; return commandName;
} }