Embed setup bundle for preload scripts in sandboxed renderers.
Add a gyp target that creates a browserify bundle starting with `lib/sandboxed_renderer/init.js`, which is embedded into the executable using the `atom_js2c` target. The goal of this bundle is to provide a very basic environment for preload scripts where a `require` function is available.
This commit is contained in:
parent
695509e267
commit
72154b64ed
6 changed files with 101 additions and 4 deletions
|
@ -65,6 +65,11 @@ def main():
|
|||
execute([npm, 'install', 'npm@2.12.1'])
|
||||
|
||||
log_versions()
|
||||
# Add "./node_modules/.bin" to the beginning of $PATH, which will ensure
|
||||
# future "npm" invocations use the right version.
|
||||
node_bin_dir = os.path.join(SOURCE_ROOT, 'node_modules', '.bin')
|
||||
os.environ['PATH'] = os.path.pathsep.join([node_bin_dir,
|
||||
os.environ.get('PATH', '')])
|
||||
|
||||
is_release = os.environ.has_key('ELECTRON_RELEASE')
|
||||
args = ['--target_arch=' + target_arch]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue