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