Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
WIP: Replace bundled Node with electron in ELECTRON_RUN_AS_NODE mode
Browse files Browse the repository at this point in the history
This will allow us to require files from asar bundles and will avoid
the need to vendor node.
  • Loading branch information
Nathan Sobo committed Jul 25, 2016
1 parent f0bd2a4 commit 230a25f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules/
/bin/node*
/lib/
.DS_Store
npm-debug.log
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
npm-debug.log
spec/
tasks/
bin/node
.travis.yml
.pairs
4 changes: 4 additions & 0 deletions bin/node
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ELECTRON_RUN_AS_NODE=1 "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" $@

# TODO: Make this run Electron as node on the various platforms
# What if there is no Atom yet? How do we find the downloaded electron? The answer may be just a hard-coded environment variable

0 comments on commit 230a25f

Please sign in to comment.