From 8f52c1549aa87ffbda92d7f40e21211afd84076a Mon Sep 17 00:00:00 2001 From: Raphix Date: Thu, 4 May 2023 17:46:02 +0200 Subject: [PATCH] 2.2.5 Final 2 Version --- infoupdate.html | 10 ++++++++++ package.json | 2 +- templates/login/login.html | 3 ++- templates/update/update.html | 3 ++- updatetools.js | 18 +++++++++++++----- 5 files changed, 28 insertions(+), 8 deletions(-) diff --git a/infoupdate.html b/infoupdate.html index d4f97c5..0b667a4 100644 --- a/infoupdate.html +++ b/infoupdate.html @@ -1,3 +1,13 @@ +

Subsonics 2.2.5

+

Sortie le : 03/05/2022

+

Ajouts & Fixes :

+ +
+

Subsonics 2.2.4

Sortie le : 03/05/2022

Ajouts & Fixes :

diff --git a/package.json b/package.json index ff7f7de..d66736a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "subsonics-manager", - "version": "2.2.4", + "version": "2.2.5", "description": "Manager for subsonics", "main": "main.js", "scripts": { diff --git a/templates/login/login.html b/templates/login/login.html index 9b6a69a..2c4f379 100644 --- a/templates/login/login.html +++ b/templates/login/login.html @@ -11,7 +11,8 @@
-

Subsonics

+ + Logo
diff --git a/templates/update/update.html b/templates/update/update.html index a462ca8..642c89e 100644 --- a/templates/update/update.html +++ b/templates/update/update.html @@ -11,7 +11,8 @@
-

Subsonics

+ + Logo
diff --git a/updatetools.js b/updatetools.js index b957a44..244e08b 100644 --- a/updatetools.js +++ b/updatetools.js @@ -7,17 +7,23 @@ const BWin = BrowserWindow const path = require("path") const decompress = require('decompress'); -var settings = {} -settings.canaldev = null +function getSettings() { -if(fs.existsSync(__dirname + path.sep + "settings.json")){ + var settings = {} + settings.canaldev = null - settings = JSON.parse(fs.readFileSync(__dirname + path.sep + "settings.json")) + if(fs.existsSync(__dirname + path.sep + "settings.json")){ + + settings = JSON.parse(fs.readFileSync(__dirname + path.sep + "settings.json")) + } + + return settings } - module.exports.checkUpdate = () => { + var settings = getSettings() + log.update("Verification des mises a jour ... Processing !") if(settings.canaldev == true) { @@ -52,6 +58,8 @@ function checkUpdateProcessing(serverPackage) { function selfUpdate() { + var settings = getSettings() + const win = BWin.getFocusedWindow() var link = "https://git.raphix.fr/subsonics/manager/archive/stable.tar.gz"