]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix calling npm on win32
authorCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 14:35:41 +0000 (22:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 14:35:41 +0000 (22:35 +0800)
script/cibuild

index 4abe614dd6400657fe5d95239eea50cf79342fdc..ef10977f33b2a5801e0485441fc34ed4de733dce 100755 (executable)
@@ -46,7 +46,8 @@ def main():
     execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
 
   # CI's npm is not reliable.
-  execute(['npm', 'install', 'npm'])
+  npm = 'npm.cmd' if sys.platform == 'win32' else 'npm'
+  execute([npm, 'install', 'npm'])
 
   rm_rf(os.path.join(SOURCE_ROOT, 'out'))
   rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))