mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixes for some dylib loading issues
This commit is contained in:
parent
379e6c2171
commit
216a5c2758
@ -258,6 +258,8 @@ class Freeze(object):
|
|||||||
for x, is_id in self.get_dependencies(path_to_lib):
|
for x, is_id in self.get_dependencies(path_to_lib):
|
||||||
if x.startswith('@rpath/Qt'):
|
if x.startswith('@rpath/Qt'):
|
||||||
yield x, x[len('@rpath/'):], is_id
|
yield x, x[len('@rpath/'):], is_id
|
||||||
|
elif x.startswith('@rpath/libjpeg'):
|
||||||
|
yield x, x[len('@rpath/'):], is_id
|
||||||
else:
|
else:
|
||||||
for y in (PREFIX + '/lib/', PREFIX + '/python/Python.framework/'):
|
for y in (PREFIX + '/lib/', PREFIX + '/python/Python.framework/'):
|
||||||
if x.startswith(y):
|
if x.startswith(y):
|
||||||
@ -363,6 +365,9 @@ class Freeze(object):
|
|||||||
for f in plugins:
|
for f in plugins:
|
||||||
shutil.copy2(f, dest)
|
shutil.copy2(f, dest)
|
||||||
self.fix_dependencies_in_lib(join(dest, basename(f)))
|
self.fix_dependencies_in_lib(join(dest, basename(f)))
|
||||||
|
if f.endswith('/podofo.so'):
|
||||||
|
self.change_dep('libpodofo.0.9.6.dylib',
|
||||||
|
'@executable_path/../Frameworks/libpodofo.0.9.6.dylib', False, join(dest, basename(f)))
|
||||||
|
|
||||||
@flush
|
@flush
|
||||||
def create_plist(self):
|
def create_plist(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user