Create release dist when ELECTRON_RELEASE is set
This commit is contained in:
parent
25e15869ec
commit
52ba6a25df
1 changed files with 10 additions and 3 deletions
|
@ -57,14 +57,21 @@ def main():
|
||||||
npm = 'npm.cmd' if sys.platform == 'win32' else 'npm'
|
npm = 'npm.cmd' if sys.platform == 'win32' else 'npm'
|
||||||
execute([npm, 'install', 'npm@2.12.1'])
|
execute([npm, 'install', 'npm@2.12.1'])
|
||||||
|
|
||||||
run_script('bootstrap.py', ['--dev', '--target_arch=' + target_arch])
|
is_release = os.environ.has_key('ELECTRON_RELEASE')
|
||||||
|
args = ['--target_arch=' + target_arch]
|
||||||
|
if not is_release:
|
||||||
|
args += ['--dev']
|
||||||
|
run_script('bootstrap.py', args)
|
||||||
|
|
||||||
run_script('cpplint.py')
|
run_script('cpplint.py')
|
||||||
if sys.platform != 'win32':
|
if sys.platform != 'win32':
|
||||||
run_script('pylint.py')
|
run_script('pylint.py')
|
||||||
run_script('coffeelint.py')
|
run_script('coffeelint.py')
|
||||||
run_script('build.py', ['-c', 'Debug'])
|
if is_release:
|
||||||
if target_arch == 'x64':
|
run_script('build.py', ['-c', 'R'])
|
||||||
|
run_script('create-dist.py')
|
||||||
|
elif target_arch == 'x64':
|
||||||
|
run_script('build.py', ['-c', 'D'])
|
||||||
run_script('test.py', ['--ci'])
|
run_script('test.py', ['--ci'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue