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

19 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);