2.1.5 Offical Version

This commit is contained in:
CICD - Pipeline 2023-05-01 23:55:21 +02:00
parent 4af63ae4bd
commit b7b6846c0e
3 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,13 @@
<h1><u>Subsonics 2.1.5</u></h1>
<p>Sortie le : 01/05/2022</p>
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2>
<ul>
<li><strong>[FIX]</strong> : Fix : Second Tentative to fix Update Checker</li>
</ul>
<hr>
<h1><u>Subsonics 2.1.4</u></h1> <h1><u>Subsonics 2.1.4</u></h1>
<p>Sortie le : 01/05/2022</p> <p>Sortie le : 01/05/2022</p>
<h2 style="font-size: 18px;">Ajouts & Fixes :</h2> <h2 style="font-size: 18px;">Ajouts & Fixes :</h2>

View File

@ -1,6 +1,6 @@
{ {
"name": "subsonics-manager", "name": "subsonics-manager",
"version": "2.1.4", "version": "2.1.5",
"description": "Manager for subsonics", "description": "Manager for subsonics",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -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)) 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) { function checkUpdateProcessing(serverPackage) {
const clientPackage = require("./package") const clientPackage = require("./package")
@ -23,7 +24,7 @@ function checkUpdateProcessing(serverPackage) {
log.update("Verification des mises a jour ... Finish !") log.update("Verification des mises a jour ... Finish !")
log.update("Mise a jour disponible ! Nouvelle version : " + serverPackage.version + " - Client : " + clientPackage.version + " - Git : " + serverPackage.version) log.update("Mise a jour disponible ! Nouvelle version : " + serverPackage.version + " - Client : " + clientPackage.version + " - Git : " + serverPackage.version)
this.update() selfUpdate()
} else { } else {
@ -33,7 +34,7 @@ function checkUpdateProcessing(serverPackage) {
} }
module.exports.update = () => { function selfUpdate() {
const win = BWin.getFocusedWindow() const win = BWin.getFocusedWindow()
win.loadFile("templates/update/update.html") win.loadFile("templates/update/update.html")
@ -75,8 +76,12 @@ module.exports.update = () => {
}); });
}
module.exports.update = () => {
selfUpdate()
} }
function install(filename) { function install(filename) {