2.0.5 PreRelease Version
This commit is contained in:
parent
df7d47d920
commit
856db533ad
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "subsonics-manager",
|
"name": "subsonics-manager",
|
||||||
"version": "2.0.4",
|
"version": "2.0.5",
|
||||||
"description": "Manager for subsonics",
|
"description": "Manager for subsonics",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -86,13 +86,21 @@ function install(filename) {
|
|||||||
log.update("Extraction de la mise à jour ... Finish !")
|
log.update("Extraction de la mise à jour ... Finish !")
|
||||||
log.update("Installation de la mise à jour ... Processing !")
|
log.update("Installation de la mise à jour ... Processing !")
|
||||||
fse.copy(__dirname + path.sep + "manager", __dirname, { overwrite: true }, () => {
|
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("Installation de la mise à jour ... Finish !")
|
||||||
log.update("Rédémarrage de l'application.")
|
log.update("Rédémarrage de l'application.")
|
||||||
app.relaunch()
|
app.relaunch()
|
||||||
app.exit()
|
app.exit()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
}).catch(err => catchError(err, true));
|
}).catch(err => catchError(err, true));
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user