]> khamidou — GitHub mirrors - electron.git/commitdiff
Call correct strip for arm target
authorCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 07:19:39 +0000 (07:19 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 2 Jul 2015 07:19:39 +0000 (07:19 +0000)
script/create-dist.py

index da2efb3ef1cff17da2aad4fb9cc95d50f4d585a3..5d52234b5681c003466b04be89ec688fa3a7c819 100755 (executable)
@@ -129,9 +129,13 @@ def copy_license():
 
 
 def strip_binaries():
+  if get_target_arch() == 'arm':
+    strip = 'arm-linux-gnueabihf-strip'
+  else:
+    strip = 'strip'
   for binary in TARGET_BINARIES[PLATFORM]:
     if binary.endswith('.so') or '.' not in binary:
-      execute(['strip', os.path.join(DIST_DIR, binary)])
+      execute([strip, os.path.join(DIST_DIR, binary)])
 
 
 def copy_system_libraries():