diff --git a/index.js b/index.js index 2cefe78..c3cd0e2 100644 --- a/index.js +++ b/index.js @@ -25,20 +25,20 @@ const logo = fs.readFileSync(path.join(__dirname,'logo.txt'), 'utf8'); console.log(logo); console.log('checking for update...'); +if(process.platform == 'linux' && process.arch == 'arm') + exec('./install-service'); + const update = new AutoUpdate(pkg); update.on('error', (err) => { console.error('update failed.'); launch(); }); update.on('update', () => console.log('updating...')); update.on('finish', () => launch()); -if(process.platform == 'linux' && process.arch == 'arm') - exec('./install-service'); - const launch = function() { -const npr = new NPR(), - story = new Story(npr), - player = new Player(); + const npr = new NPR(), + story = new Story(npr), + player = new Player(); console.log('connecting to npr one...'); diff --git a/package.json b/package.json index 6cc2f8d..df80d07 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "license": "MIT", "dependencies": { "chalk": "^1.1.3", - "cli-autoupdate": "^2.0.2", + "cli-autoupdate": "^2.0.3", "dotenv": "^1.2.0", "gauge": "^2.2.1", "inquirer": "^0.9.0",