diff --git a/electron/components/PearlOTA.js b/electron/components/PearlOTA.js index 9b3f82d96..e24ae90a0 100644 --- a/electron/components/PearlOTA.js +++ b/electron/components/PearlOTA.js @@ -27,6 +27,7 @@ class PearlOTA { this.updater.autoDownload = false; this.updater.autoInstallOnAppQuit = false; this.updater.logger = logger; + // this.updater.forceDevUpdateConfig = true; this.#bindUpdaterEvents(); } diff --git a/electron/constants/config.js b/electron/constants/config.js index 614b99453..ce902b4ad 100644 --- a/electron/constants/config.js +++ b/electron/constants/config.js @@ -1,4 +1,4 @@ -const { isDev } = require('../constants'); +const { isProd } = require('../constants'); require('dotenv').config(); @@ -14,6 +14,7 @@ require('dotenv').config(); * channel: string, * vPrefixedTagName: boolean, * protocol: "https" | "http", + * token?: string * }} PearlGithubUpdateOptions * */ @@ -30,11 +31,11 @@ const githubUpdateOptions = { owner: 'valory-xyz', repo: 'olas-operate-app', private: false, // Only set to true if the repo is private - publishAutoUpdate: !isDev, // Publishes the update to GitHub + publishAutoUpdate: isProd, // Publishes the update to GitHub channel: 'latest', // The release channel to check for updates, e.g. 'latest', 'beta', 'alpha' vPrefixedTagName: true, protocol: 'https', - // token: isDev ? process.env.GH_TEST_PAT ?? null : null, // Personal Access Token (PAT) for GitHub when testing + // token: process.env.GH_TEST_PAT, // Personal Access Token (PAT) for GitHub when testing }; /** diff --git a/electron/store.js b/electron/store.js index 2cfdcbe9d..d953d13f6 100644 --- a/electron/store.js +++ b/electron/store.js @@ -23,7 +23,7 @@ const schema = { * @note All versions prior will be migrated to the latest version. * @type {Record) => void>} */ const migrations = { - '0.1.0-rc146': (store) => { + '0.1.0-rc149': (store) => { // Environment name and current staking program are unused // can revisit environment name if we need to support multiple environments if (store.has('environmentName')) { diff --git a/package.json b/package.json index ed7a09d8d..38f5b344e 100644 --- a/package.json +++ b/package.json @@ -58,5 +58,5 @@ "download-binaries": "sh download_binaries.sh", "build:pearl": "sh build_pearl.sh" }, - "version": "0.1.0-rc146" + "version": "0.1.0-rc149" } diff --git a/pyproject.toml b/pyproject.toml index 1a7daa645..daff1ac53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "olas-operate-middleware" -version = "0.1.0-rc146" +version = "0.1.0-rc149" description = "" authors = ["David Vilela ", "Viraj Patel "] readme = "README.md"