bump autoupdate version
This commit is contained in:
parent
1dcfbe36c1
commit
f485556bc8
2 changed files with 7 additions and 7 deletions
12
index.js
12
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...');
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue