Skip to content

Commit

Permalink
fix: autoUpdater config
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Oct 3, 2024
1 parent f809f99 commit 219f901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions electron/components/PearlOTA.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class PearlOTA {
this.updater.autoDownload = false;
this.updater.autoInstallOnAppQuit = false;
this.updater.logger = logger;
this.updater.allowPrerelease = true;

this.#bindUpdaterEvents();
}
Expand Down
6 changes: 1 addition & 5 deletions electron/constants/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ require('dotenv').config();
* vPrefixedTagName: boolean,
* protocol: "https" | "http",
* releaseType: 'draft' | 'prerelease' | 'release',
* private: boolean,
* token?: string,
* allowPrerelease: boolean,
* }} PearlGithubPublishOptions
*/

Expand All @@ -31,9 +29,7 @@ const githubPublishOptions = {
publishAutoUpdate: true, // Publishes the update to GitHub
vPrefixedTagName: true,
protocol: 'https',
channel: isDev ? 'dev' : 'latest', // Github only supports latest, dev stops overwrite,
private: false, // Only set to true if the repo is private
allowPrerelease: true, // Allow pre-release versions to be installed
channel: isDev ? 'dev' : 'latest', // Github only supports latest, dev stops overwrite
};

module.exports = {
Expand Down

0 comments on commit 219f901

Please sign in to comment.