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:
Thiago de Arruda 2016-08-21 07:30:14 -03:00
parent 695509e267
commit 72154b64ed
6 changed files with 101 additions and 4 deletions

View file

@ -14,10 +14,7 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor')
PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26'
if os.environ.has_key('CI'):
NPM = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'npm')
else:
NPM = 'npm'
NPM = 'npm'
if sys.platform in ['win32', 'cygwin']:
NPM += '.cmd'