2.0.7 PreRelease Version
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "subsonics-manager",
 | 
					  "name": "subsonics-manager",
 | 
				
			||||||
  "version": "2.0.6",
 | 
					  "version": "2.0.7",
 | 
				
			||||||
  "description": "Manager for subsonics",
 | 
					  "description": "Manager for subsonics",
 | 
				
			||||||
  "main": "main.js",
 | 
					  "main": "main.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -86,20 +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.rmSync(filename)
 | 
					            fs.rm(filename, () => {
 | 
				
			||||||
            fs.rm(__dirname + path.sep + "manager", { recursive: true, force: true }, (err) => {
 | 
					                fs.rm(__dirname + path.sep + "manager", { recursive: true, force: true }, (err) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if(err) {
 | 
					                    if(err) {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
                    console.log(err)
 | 
					                        console.log(err)
 | 
				
			||||||
                }
 | 
					                    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					                    log.update("Installation de la mise à jour ... Finish !")
 | 
				
			||||||
 | 
					                    log.update("Rédémarrage de l'application.")
 | 
				
			||||||
 | 
					                    app.relaunch()
 | 
				
			||||||
 | 
					                    app.exit()
 | 
				
			||||||
 | 
					                })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                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));
 | 
					    }).catch(err => catchError(err, true));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user