Fix for osx/linux autoupdated

pull/110/head
openbuilds-engineer 2018-08-28 18:12:42 +02:00
rodzic a66d8be124
commit 42be3768ea
2 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -59,10 +59,10 @@ const Menu = require('electron').Menu
var appIcon = null,
jogWindow = null,
mainWindow = null
var autoUpdater
if (isElectron()) {
const autoUpdater = require("electron-updater").autoUpdater
autoUpdater = require("electron-updater").autoUpdater
var availversion = '0.0.0'
autoUpdater.on('checking-for-update', () => {
@ -175,6 +175,8 @@ if (isElectron()) {
})
}
});
} else {
console.log("Running outside Electron: Disabled AutoUpdater")
}
if (isElectron()) {
@ -641,6 +643,8 @@ io.on("connection", function(socket) {
socket.on("downloadUpdate", function(data) {
if (typeof autoUpdater !== 'undefined') {
autoUpdater.checkForUpdates();
} else {
console.log("autoUpdater not found")
}
})

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsMachineDriver",
"version": "1.0.79",
"version": "1.0.80",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds <webmaster@openbuilds.com>",