electron/spec-main/fixtures/auto-update/initial/index.js

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)