diff --git a/main.js b/main.js index 9d58004..e3d3643 100644 --- a/main.js +++ b/main.js @@ -68,6 +68,7 @@ const loadMainWindow = () => { }); mainWindow.once('ready-to-show', () => { + autoUpdater.checkForUpdates(); autoUpdater.checkForUpdatesAndNotify(); }); diff --git a/package.json b/package.json index bb50ae6..e654be7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "main": "main.js", "scripts": { - "uglify": "uglifyjs-folder ./public/lib/ -o public/lib/all.min.js", + "uglify": "uglifyjs-folder ./public/lib/source -o public/lib/all.min.js", "start": "electron .", "test": "echo \"Error: no test specified\" && exit 1", "build": "electron-builder build --win --publish never", diff --git a/public/index.html b/public/index.html index 0bc10ac..59f1124 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,19 @@ Longvinter Modtools + + + + + + + + - - - - - - - - @@ -139,6 +135,12 @@

Longvinter mods manager

Tsukasaroot + diff --git a/public/lib/source/self-update.js b/public/lib/self-update.js similarity index 90% rename from public/lib/source/self-update.js rename to public/lib/self-update.js index 3016ac4..56f91e0 100644 --- a/public/lib/source/self-update.js +++ b/public/lib/self-update.js @@ -1,9 +1,9 @@ -const version = document.getElementById('version'); +const v = document.getElementById('version'); ipcRenderer.send('app_version'); ipcRenderer.on('app_version', (event, arg) => { ipcRenderer.removeAllListeners('app_version'); - version.innerText = 'Version ' + arg.version; + v.innerText = 'Version ' + arg.version; }); const notification = document.getElementById('notification'); @@ -30,4 +30,4 @@ function closeNotification() { function restartApp() { ipcRenderer.send('restart_app'); -} \ No newline at end of file +}