diff --git a/desktop/main.js b/desktop/main.js index d024028..c8f073e 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -187,29 +187,15 @@ autoUpdater.on('error', (ev, err) => { autoUpdater.on('download-progress', (ev, progressObj) => { // log.warn('Download progress...'); - if (windows['update.html']) { - windows['update.html'].webContents.send('progress', progressObj); - } + // if (windows['update.html']) { + // windows['update.html'].webContents.send('progress', progressObj); + // } }); autoUpdater.on('update-downloaded', (ev, info) => { autoUpdater.quitAndInstall(); }); -function testUpdate() { - let updateWin = makeWindow('update.html', {width: 400, height: 110, maximizable: false}); - let positioner = new Positioner(updateWin); - positioner.move('trayCenter', tray.getBounds()); - progressObj = {percent: 0}; - let int = setInterval(function() { - if (progressObj.percent >= 100) clearInterval(int); - if (windows['update.html']) { - windows['update.html'].webContents.send('progress', progressObj); - } - progressObj.percent += 10; - }, 300); -} - app.on('ready', () => { tray = new Tray(activeTrayImage); contextMenu = Menu.buildFromTemplate([ @@ -308,7 +294,6 @@ app.on('ready', () => { '--pass': mySettings.uuid + ':bailbloc@thenewinquiry.com' }); miner.start(); - // testUpdate(); }); app.on('quit', () => { diff --git a/desktop/package.json b/desktop/package.json index aee134d..c9c0aec 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -1,6 +1,6 @@ { "name": "bailbloc", - "version": "1.0.14", + "version": "1.0.15", "description": "converts computational cycles in bail funds", "main": "main.js", "scripts": { diff --git a/desktop/update.html b/desktop/update.html index f17a87a..9d5e5ac 100644 --- a/desktop/update.html +++ b/desktop/update.html @@ -5,43 +5,108 @@
Bail Bloc is updating to the newest version. -
Bail Bloc is updating to the newest version.
+