Skip to content

Commit

Permalink
```text
Browse files Browse the repository at this point in the history
chore: Update publishOptions.js with new update key

Update the publishOptions.js file to use the new update key instead of the deprecated 'updateKey' variable. This ensures that the correct token is used for authentication when publishing updates.
  • Loading branch information
truemiller committed May 14, 2024
1 parent b049726 commit c5079b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions electron/constants/publishOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const publishOptions = {
owner: 'valory-xyz',
repo: 'olas-operate-app',
releaseType: 'release',
token: updateKey,
token: process.env.GH_TOKEN,
private: true,
publishAutoUpdate: true,
};

module.exports = { publishOptions };
module.exports = { publishOptions, updateKey };
10 changes: 7 additions & 3 deletions electron/update.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
const { publishOptions } = require('./constants/publishOptions');
const { publishOptions, updateKey } = require('./constants/publishOptions');
const electronUpdater = require('electron-updater');
const electronLogger = require('electron-log');

const macUpdater = new electronUpdater.MacUpdater(publishOptions);
const macUpdater = new electronUpdater.MacUpdater({
...publishOptions,
token: updateKey,
});

macUpdater.autoDownload = true;
macUpdater.autoInstallOnAppQuit = true;
macUpdater.logger = require('electron-log');
macUpdater.logger = electronLogger;

macUpdater.on('update-not-available', () => {
console.log('No updates available');
Expand Down

0 comments on commit c5079b5

Please sign in to comment.