MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / fix_binary

Function fix_binary

external/macdeployqtfix.py:293–310  ·  view source on GitHub ↗

input: binary: relative or absolute path (no @executable_path syntax) process: - first fix the rpath for the qt libs on which 'binary' depend - copy into the bundle of exepath the eventual libraries that are missing - (create the soft links) needed

(binary)

Source from the content-addressed store, hash-verified

291
292
293def fix_binary(binary):
294 """
295 input:
296 binary: relative or absolute path (no @executable_path syntax)
297 process:
298 - first fix the rpath for the qt libs on which 'binary' depend
299 - copy into the bundle of exepath the eventual libraries that are missing
300 - (create the soft links) needed ?
301 - do the same for all qt dependencies of binary (recursive)
302 """
303 GlobalConfig.logger.debug('fix_binary({0})'.format(binary))
304
305 # loop on 'binary' dependencies
306 for dep in get_dependencies(binary):
307 if not fix_dependency(binary, dep):
308 GlobalConfig.logger.error('quitting early: couldn\'t fix dependency {0} of {1}'.format(dep, binary))
309 return False
310 return True
311
312
313def fix_main_binaries():

Callers 2

fix_dependencyFunction · 0.85
fix_main_binariesFunction · 0.85

Calls 4

get_dependenciesFunction · 0.85
fix_dependencyFunction · 0.85
errorMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected