electron/spec-main/fixtures/auto-update/initial/index.js
2020-03-20 13:28:31 -07:00

18 lines
305 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);