1212 import _winreg
1313
1414from lib .config import BASE_URL , PLATFORM , enable_verbose_mode , \
15- get_target_arch , get_zip_name
15+ get_target_arch , get_zip_name , build_env
1616from lib .util import scoped_cwd , rm_rf , get_electron_version , make_zip , \
1717 execute , electron_gyp
1818
@@ -210,15 +210,15 @@ def strip_binaries():
210210
211211
212212def strip_binary (binary_path ):
213- if get_target_arch () == 'arm' :
214- strip = 'arm-linux-gnueabihf-strip'
215- elif get_target_arch () == 'arm64' :
216- strip = 'aarch64-linux-gnu-strip'
217- elif get_target_arch () == 'mips64el' :
218- strip = 'mips64el-redhat-linux-strip'
219- else :
220- strip = 'strip'
221- execute ([strip , binary_path ])
213+ if get_target_arch () == 'arm' :
214+ strip = 'arm-linux-gnueabihf-strip'
215+ elif get_target_arch () == 'arm64' :
216+ strip = 'aarch64-linux-gnu-strip'
217+ elif get_target_arch () == 'mips64el' :
218+ strip = 'mips64el-redhat-linux-strip'
219+ else :
220+ strip = 'strip'
221+ execute ([strip , binary_path ], env = build_env () )
222222
223223
224224def create_version ():
@@ -228,6 +228,9 @@ def create_version():
228228
229229
230230def create_symbols ():
231+ if get_target_arch () == 'mips64el' :
232+ return
233+
231234 destination = os .path .join (DIST_DIR , '{0}.breakpad.syms' .format (PROJECT_NAME ))
232235 dump_symbols = os .path .join (SOURCE_ROOT , 'script' , 'dump-symbols.py' )
233236 execute ([sys .executable , dump_symbols , destination ])
@@ -288,6 +291,9 @@ def create_ffmpeg_zip():
288291
289292
290293def create_symbols_zip ():
294+ if get_target_arch () == 'mips64el' :
295+ return
296+
291297 dist_name = get_zip_name (PROJECT_NAME , ELECTRON_VERSION , 'symbols' )
292298 zip_file = os .path .join (DIST_DIR , dist_name )
293299 licenses = ['LICENSE' , 'LICENSES.chromium.html' , 'version' ]
0 commit comments