-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using absolute path to NodeJS when system node is used
- Loading branch information
1 parent
1a77068
commit 74bcd1a
Showing
5 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ function exists (directory, callback) { | |
var dir = path.join('/usr/share', 'com.add0n.node'); | ||
var name = 'com.add0n.node'; | ||
var ids = { | ||
chrome: ['mbpegmnngblolkfjoegdinohffomfljn'], | ||
firefox: ['[email protected]'] | ||
chrome: ['lmeddoobegbaiopohmpmmobpnpjifpii'], | ||
firefox: [] | ||
}; | ||
|
||
function manifest (root, type, callback) { | ||
|
@@ -73,7 +73,7 @@ function application (callback) { | |
throw e; | ||
} | ||
let isNode = process.argv[2] !== '--add_node'; | ||
let run = isNode ? '#!/bin/bash\nnode host.js' : '#!/bin/bash\n./node host.js'; | ||
let run = isNode ? `#!/bin/bash\n${process.argv[2]} host.js` : '#!/bin/bash\n./node host.js'; | ||
fs.writeFile(path.join(dir, 'run.sh'), run, (e) => { | ||
if (e) { | ||
throw e; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,10 @@ function exists (directory, callback) { | |
var dir = path.join('/usr/share', 'com.add0n.node'); | ||
var name = 'com.add0n.node'; | ||
var ids = { | ||
chrome: ['pghoffeollloldpepedofbmlokimpblo'], | ||
firefox: ['[email protected]'] | ||
chrome: [ | ||
'lmeddoobegbaiopohmpmmobpnpjifpii' // open in Firefox (Chrome) | ||
], | ||
firefox: [] | ||
}; | ||
|
||
function manifest (root, type, callback) { | ||
|
@@ -68,14 +70,17 @@ function manifest (root, type, callback) { | |
|
||
}); | ||
} | ||
|
||
console.error(process.argv) | ||
|
||
function application (callback) { | ||
exists(dir, (e) => { | ||
if (e) { | ||
throw e; | ||
} | ||
|
||
let isNode = process.argv[2] !== '--add_node'; | ||
let run = isNode ? '#!/bin/bash\nnode host.js' : '#!/bin/bash\n./node host.js'; | ||
let run = isNode ? `#!/bin/bash\n${process.argv[2]} host.js` : '#!/bin/bash\n./node host.js'; | ||
fs.writeFile(path.join(dir, 'run.sh'), run, (e) => { | ||
if (e) { | ||
throw e; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,10 @@ function exists (directory, callback) { | |
var dir = path.join(process.argv[2], 'com.add0n.node'); | ||
var name = 'com.add0n.node'; | ||
var ids = { | ||
chrome: ['gfhloibcnnngmfkpnpbbgblbgcghaapb'], | ||
firefox: ['[email protected]'] | ||
chrome: [ | ||
'lmeddoobegbaiopohmpmmobpnpjifpii' // open in Firefox (Chrome) | ||
], | ||
firefox: [] | ||
}; | ||
|
||
function manifest (type, callback) { | ||
|