2.0.5 PreRelease Version
This commit is contained in:
parent
df7d47d920
commit
856db533ad
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "subsonics-manager",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.5",
|
||||
"description": "Manager for subsonics",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
@ -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));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user