From b2494b6a561c6f439589240d8be18ebb2fc79313 Mon Sep 17 00:00:00 2001 From: confused-Techie Date: Mon, 12 Feb 2024 16:49:19 -0800 Subject: [PATCH] Remove handling of `beta`, `nightly`, add `dev` --- src/atom-environment.js | 4 ++-- src/command-installer.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/atom-environment.js b/src/atom-environment.js index 510970615c..b723f1e1b1 100644 --- a/src/atom-environment.js +++ b/src/atom-environment.js @@ -600,7 +600,7 @@ class AtomEnvironment { // Public: Gets the release channel of the Pulsar application. // // 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. getReleaseChannel() { 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. 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. diff --git a/src/command-installer.js b/src/command-installer.js index 384e543247..69954775d6 100644 --- a/src/command-installer.js +++ b/src/command-installer.js @@ -45,14 +45,12 @@ module.exports = class CommandInstaller { } getCommandNameForChannel(commandName) { - let channelMatch = this.appVersion.match(/beta|nightly/); + let channelMatch = this.appVersion.match(/dev/); let channel = channelMatch ? channelMatch[0] : ''; switch (channel) { - case 'beta': - return `${commandName}-beta`; - case 'nightly': - return `${commandName}-nightly`; + case 'dev': + return `${commandName}-dev`; default: return commandName; }