Atom's
AutoUpdateManager
class as a standalone module.
const path = require('path');
const AutoUpdateManager = require('hadron-auto-update-manager');
const autoUpdater = new AutoUpdateManager({
endpoint: 'https://compass-mongodb-com.herokuapp.com',
icon_path: path.join(__dirname, '..', 'resources', 'mongodb-compass.png')
})
.on('update-available', () => {
autoUpdater.install();
})
.check();
Apache 2.0