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

19 lines
305 B
JavaScript
Raw Normal View History

process.on('uncaughtException', (err) => {
2020-03-20 20:28:31 +00:00
console.error(err);
process.exit(1);
});
2020-03-20 20:28:31 +00:00
const { autoUpdater } = require('electron');
2020-03-20 20:28:31 +00:00
const feedUrl = process.argv[1];
2020-03-20 20:28:31 +00:00
console.log('Setting Feed URL');
autoUpdater.setFeedURL({
url: feedUrl
2020-03-20 20:28:31 +00:00
});
2020-03-20 20:28:31 +00:00
console.log('Feed URL Set:', feedUrl);
2020-03-20 20:28:31 +00:00
process.exit(0);