-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix public OTA updates #166
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
90d8aef
(WIP) Fix public OTA
d39cafb
update dependencies, linting .etc
ab2a260
chore: Remove mac updater from electron main.js
6241e1d
chore: Update package version to "0.0.1-ota"
truemiller a9c3b6f
omit token from macupdater options
truemiller 34a3d98
chore: Update package version to "0.0.1"
truemiller 94bb00b
feat: Update electron-updater options in main.js and publishOptions.js
truemiller 479f87d
chore: Remove unused token from electron-updater options
truemiller d831baa
chore: Update macUpdater import in electron/main.js
truemiller 669819f
chore: Update publishOptions.js to include GH_TOKEN
truemiller 8c09cdd
chore: Refactor electron/update.js to use updated electron-updater op…
truemiller 3dd615c
Refactor electron/update.js to use updated electron-updater options
truemiller 38ca160
Refactor electron/update.js to use updated electron-updater options
truemiller e73b566
Refactor electron/update.js to use updated electron-updater options
truemiller 874030c
Refactor electron/update.js to use updated electron-updater options
truemiller 3a72564
chore: Bump package version to "0.1.0-rc34.2"
truemiller e3afe76
chore: Bump package version to "0.1.0-rc34.3"
truemiller 75202a7
chore: Update import path for githubPublishOptions in build.js
truemiller cc897b0
chore: Bump package version to "0.1.0-rc34.2"
truemiller 4934a50
chore: Bump package version to "0.1.0-rc34.3"
truemiller 6c97775
Merge remote-tracking branch 'origin/main' into josh/public-ota
truemiller d779f1b
fix eslint conflicts
truemiller 635f3f1
merge
truemiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.next | ||
scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
electron/constants/publishOptions.js → electron/constants/config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
const publishOptions = { | ||
const githubOptions = { | ||
releaseType: 'draft', | ||
publishAutoUpdate: true, | ||
token: process.env.GH_TOKEN, | ||
provider: 'github', | ||
owner: 'valory-xyz', | ||
repo: 'olas-operate-app', | ||
releaseType: 'draft', | ||
token: process.env.GH_TOKEN, | ||
private: false, | ||
publishAutoUpdate: false, | ||
protocol: 'https', | ||
channel: 'latest', | ||
}; | ||
|
||
module.exports = { publishOptions }; | ||
module.exports = { githubOptions }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
const { publishOptions } = require('./constants/publishOptions'); | ||
const electronUpdater = require('electron-updater'); | ||
const { MacUpdater } = require('electron-updater'); | ||
const electronLogger = require('electron-log'); | ||
const { githubOptions } = require('./constants/config'); | ||
|
||
const macUpdater = new electronUpdater.MacUpdater({ | ||
...publishOptions, | ||
channels: ['latest', 'beta', 'alpha'], // automatically update to all channels | ||
}); | ||
const macUpdater = new MacUpdater(githubOptions); | ||
|
||
macUpdater.logger = electronLogger; | ||
|
||
macUpdater.setFeedURL({ ...publishOptions }); | ||
|
||
macUpdater.autoDownload = false; | ||
macUpdater.autoInstallOnAppQuit = true; | ||
electronLogger.transports.file.level = 'info'; | ||
macUpdater.logger = electronLogger; | ||
|
||
module.exports = { macUpdater }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oaksprout commented that the user has to manually update it.