]> khamidou — GitHub mirrors - electron.git/commitdiff
Create release dist when ELECTRON_RELEASE is set
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 02:14:13 +0000 (10:14 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 02:17:20 +0000 (10:17 +0800)
script/cibuild

index 70a17237ca614184fa429bf3913b61fded5a0fea..2c1e7e70304452b30dc32edc4068f2ddb3b79767 100755 (executable)
@@ -57,14 +57,21 @@ def main():
   npm = 'npm.cmd' if sys.platform == 'win32' else 'npm'
   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')
   if sys.platform != 'win32':
     run_script('pylint.py')
   run_script('coffeelint.py')
-  run_script('build.py', ['-c', 'Debug'])
-  if target_arch == 'x64':
+  if is_release:
+    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'])