]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix calling apm for apm 0.37.0.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 28 Mar 2014 09:30:15 +0000 (09:30 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 28 Mar 2014 09:30:15 +0000 (09:30 +0000)
script/bootstrap.py

index 07be1f86d48abf082284879deba1fa5fd017c17e..74250628f4c6e12efc25f5a75554581976be4d77 100755 (executable)
@@ -59,7 +59,7 @@ def update_apm():
     execute([npm, 'install', 'npm'])
     npm = os.path.join('node_modules', '.bin', 'npm')
     if sys.platform == 'win32':
-      npm += 'cmd'
+      npm += '.cmd'
 
   with scoped_cwd(os.path.join('vendor', 'apm')):
     subprocess.check_call([npm, 'install', '.'])
@@ -73,7 +73,9 @@ def update_node_modules():
 def update_node_modules_for_dir(dirname):
   with scoped_cwd(dirname):
     apm = os.path.join(SOURCE_ROOT, 'vendor', 'apm', 'bin', 'apm')
-    subprocess.check_call(['node', os.path.relpath(apm), 'install'])
+    if sys.platform in ['win32', 'cygwin']:
+      apm += '.cmd'
+    subprocess.check_call([apm, 'install'])
 
 
 def update_win32_python():