b8dbe4bc15
* spec: add tests for the autoUpdater on macOS that actually test if it works * spec: add express as dep * spec: add logic to auto-trust self-signed certificate and not run autoupdate specs on MAS * build: fix the step name for importing the codesign cert * chore: update updater spec PR as per feedback * fix: s/atomBinding/electronBinding * build: use spawn instead of exec
18 lines
296 B
JavaScript
18 lines
296 B
JavaScript
process.on('uncaughtException', (err) => {
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|
|
|
|
const { autoUpdater } = require('electron')
|
|
|
|
const feedUrl = process.argv[1]
|
|
|
|
console.log('Setting Feed URL')
|
|
|
|
autoUpdater.setFeedURL({
|
|
url: feedUrl
|
|
})
|
|
|
|
console.log('Feed URL Set:', feedUrl)
|
|
|
|
process.exit(0)
|