From 479f87dc9a72623d65ec76e88047a7b2801773b4 Mon Sep 17 00:00:00 2001 From: Josh Miller Date: Wed, 5 Jun 2024 11:49:34 +0100 Subject: [PATCH] chore: Remove unused token from electron-updater options --- electron/constants/publishOptions.js | 1 - electron/main.js | 4 ---- electron/update.js | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/electron/constants/publishOptions.js b/electron/constants/publishOptions.js index c973202e0..4f2cacaf3 100644 --- a/electron/constants/publishOptions.js +++ b/electron/constants/publishOptions.js @@ -4,7 +4,6 @@ const publishOptions = { owner: 'valory-xyz', repo: 'olas-operate-app', releaseType: 'draft', - token: process.env.GH_TOKEN, private: false, publishAutoUpdate: true, }; diff --git a/electron/main.js b/electron/main.js index 46963055b..f2778d7c9 100644 --- a/electron/main.js +++ b/electron/main.js @@ -36,15 +36,11 @@ const { setupStoreIpc } = require('./store'); // Configure environment variables dotenv.config(); -console.log(app.getVersion()) // Attempt to acquire the single instance lock const singleInstanceLock = app.requestSingleInstanceLock(); if (!singleInstanceLock) app.quit(); const macUpdater = setupMacUpdater(app); - -return - const platform = os.platform(); const isDev = process.env.NODE_ENV === 'development'; diff --git a/electron/update.js b/electron/update.js index ef34cbf7d..ca1150ee1 100644 --- a/electron/update.js +++ b/electron/update.js @@ -6,7 +6,7 @@ const { publishOptions } = require('./constants/publishOptions'); const setupMacUpdater = (app) => { /** @type import type { MacUpdater } from "electron-updater" */ const macUpdater = new electronUpdater.MacUpdater( - { publishOptions, token: undefined, vPrefixedTagName: true }, + { publishOptions, vPrefixedTagName: false }, app, );