-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding environment variable to be check to prevent electron from inst…
…alling (#4)
- Loading branch information
Showing
4 changed files
with
81 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# IntelliJ project files | ||
.idea | ||
*.iml | ||
out | ||
gen### Node template | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
.DS_Store | ||
temp/ | ||
/build/ | ||
build |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
var electron = require('./') | ||
var electron = require("./"); | ||
|
||
var proc = require('child_process') | ||
var proc = require("child_process"); | ||
|
||
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'}) | ||
child.on('close', function (code) { | ||
process.exit(code) | ||
}) | ||
var child = proc.spawn(electron, process.argv.slice(2), {stdio: "inherit"}); | ||
child.on("close", function (code) { | ||
process.exit(code); | ||
}); |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var fs = require('fs') | ||
var path = require('path') | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
|
||
var pathFile = path.join(__dirname, 'path.txt') | ||
var pathFile = path.join(__dirname, "path.txt"); | ||
|
||
if (fs.existsSync(pathFile)) { | ||
module.exports = path.join(__dirname, fs.readFileSync(pathFile, 'utf-8')) | ||
module.exports = path.join(__dirname, fs.readFileSync(pathFile, "utf-8")); | ||
} else { | ||
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') | ||
throw new Error("Electron failed to install correctly, please delete node_modules/electron and try installing again"); | ||
} |
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