From 219f901eef5512e57c0b7d13afd957bcff66b86b Mon Sep 17 00:00:00 2001 From: truemiller Date: Thu, 3 Oct 2024 02:52:16 +0100 Subject: [PATCH] fix: autoUpdater config --- electron/components/PearlOTA.js | 1 + electron/constants/config.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/electron/components/PearlOTA.js b/electron/components/PearlOTA.js index 75c348e1f..6565d18b6 100644 --- a/electron/components/PearlOTA.js +++ b/electron/components/PearlOTA.js @@ -26,6 +26,7 @@ class PearlOTA { this.updater.autoDownload = false; this.updater.autoInstallOnAppQuit = false; this.updater.logger = logger; + this.updater.allowPrerelease = true; this.#bindUpdaterEvents(); } diff --git a/electron/constants/config.js b/electron/constants/config.js index 7a45e31ee..e303f142c 100644 --- a/electron/constants/config.js +++ b/electron/constants/config.js @@ -14,9 +14,7 @@ require('dotenv').config(); * vPrefixedTagName: boolean, * protocol: "https" | "http", * releaseType: 'draft' | 'prerelease' | 'release', - * private: boolean, * token?: string, - * allowPrerelease: boolean, * }} PearlGithubPublishOptions */ @@ -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 = {