From b7b6846c0e429b0614c9beb8ef66865212e9d8b0 Mon Sep 17 00:00:00 2001 From: Raphix Date: Mon, 1 May 2023 23:55:21 +0200 Subject: [PATCH] 2.1.5 Offical Version --- infoupdate.html | 10 ++++++++++ package.json | 2 +- updatetools.js | 9 +++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/infoupdate.html b/infoupdate.html index dee27c6..03eb41b 100644 --- a/infoupdate.html +++ b/infoupdate.html @@ -1,3 +1,13 @@ +

Subsonics 2.1.5

+

Sortie le : 01/05/2022

+

Ajouts & Fixes :

+ +
+

Subsonics 2.1.4

Sortie le : 01/05/2022

Ajouts & Fixes :

diff --git a/package.json b/package.json index f1aa89e..dc7cb5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "subsonics-manager", - "version": "2.1.4", + "version": "2.1.5", "description": "Manager for subsonics", "main": "main.js", "scripts": { diff --git a/updatetools.js b/updatetools.js index db54d50..177e04f 100644 --- a/updatetools.js +++ b/updatetools.js @@ -15,6 +15,7 @@ module.exports.checkUpdate = () => { fetch("https://git.raphix.fr/subsonics/manager/raw/branch/main/package.json").catch(err => catchError(err)).then(resp => resp.json()).then(resp => checkUpdateProcessing(resp)) } + function checkUpdateProcessing(serverPackage) { const clientPackage = require("./package") @@ -23,7 +24,7 @@ function checkUpdateProcessing(serverPackage) { log.update("Verification des mises a jour ... Finish !") log.update("Mise a jour disponible ! Nouvelle version : " + serverPackage.version + " - Client : " + clientPackage.version + " - Git : " + serverPackage.version) - this.update() + selfUpdate() } else { @@ -33,7 +34,7 @@ function checkUpdateProcessing(serverPackage) { } -module.exports.update = () => { +function selfUpdate() { const win = BWin.getFocusedWindow() win.loadFile("templates/update/update.html") @@ -75,8 +76,12 @@ module.exports.update = () => { }); +} +module.exports.update = () => { + + selfUpdate() } function install(filename) {