make the auto updater work on windows (#514)

This commit is contained in:
Guillermo Rauch 2016-07-29 21:12:53 -07:00 committed by GitHub
parent 990c138cf3
commit 988f32e373

View file

@ -3,7 +3,12 @@ const { version } = require('./package');
const notify = require('./notify'); // eslint-disable-line no-unused-vars
const ms = require('ms');
const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';
// accepted values: `osx`, `win32`
// https://nuts.gitbook.com/update-windows.html
const platform = 'darwin' === process.platform
? 'osx'
: process.platform;
const FEED_URL = `https://hyperterm-updates.now.sh/update/${platform}`;
let isInit = false;
function init () {