2.0.5 PreRelease Version

This commit is contained in:
CICD - Pipeline 2023-04-29 19:29:33 +02:00
parent df7d47d920
commit 856db533ad
2 changed files with 14 additions and 6 deletions

View File

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

View File

@ -86,13 +86,21 @@ function install(filename) {
log.update("Extraction de la mise à jour ... Finish !")
log.update("Installation de la mise à jour ... Processing !")
fse.copy(__dirname + path.sep + "manager", __dirname, { overwrite: true }, () => {
fs.rmdirSync(__dirname + path.sep + "manager", { recursive: true, force: true })
fs.rm(__dirname + path.sep + "manager", { recursive: true, force: true }, (err) => {
if(err) {
console.log(err)
}
log.update("Installation de la mise à jour ... Finish !")
log.update("Rédémarrage de l'application.")
app.relaunch()
app.exit()
})
})
}).catch(err => catchError(err, true));