Skip to content

Commit

Permalink
[pulsar-updater] Don't prompt to update on non-default release channels
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Jan 6, 2025
1 parent e46ba9a commit 7c1986f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 7 additions & 4 deletions packages/pulsar-updater/src/find-install-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ async function main() {
returnValue = "Spec Mode";
}

if (atom.getVersion().endsWith("-dev")) {
if (atom.getReleaseChannel() !== 'stable') {
// This would only be the case if
// 1. `yarn start` was used by a developer
// 2. Someone built a local binary without removing `-dev` from the version
returnValue = "Developer Instance";
//
// * `yarn start` was used by a developer,
// * someone built a local binary without removing `-dev` from the version,
// or
// * someone was using a preview build of PulsarNext.
returnValue = 'Custom Release Channel';
}

if (returnValue.length > 0) {
Expand Down
5 changes: 1 addition & 4 deletions packages/pulsar-updater/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,10 @@ class PulsarUpdater {
break;
case "Safe Mode":
return null;
break;
case "Spec Mode":
return null;
break;
case "Developer Instance":
case "Custom Release Channel":
return null;
break;
case "Flatpak Installation":
returnText += "Install the latest version by running `flatpak update`.";
break;
Expand Down

0 comments on commit 7c1986f

Please sign in to comment.