mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 21:12:50 +00:00
Add extra file for mutool
This commit is contained in:
parent
6c48676954
commit
5fd896e2f0
@ -242,6 +242,9 @@ class MacosxBuilder(object):
|
|||||||
self.dmgbuild = _which(self.config.get('executables', 'dmgbuild'))
|
self.dmgbuild = _which(self.config.get('executables', 'dmgbuild'))
|
||||||
self.mudraw_bin = _which(self.config.get('executables', 'mudrawbin'))
|
self.mudraw_bin = _which(self.config.get('executables', 'mudrawbin'))
|
||||||
self.mutool_bin = _which(self.config.get('executables', 'mutoolbin'))
|
self.mutool_bin = _which(self.config.get('executables', 'mutoolbin'))
|
||||||
|
if self.mutool_bin:
|
||||||
|
self.mutool_lib = os.path.abspath(
|
||||||
|
os.path.join(os.path.dirname(self.mutool_bin), '..', 'lib', 'libjbig2dec.0.dylib'))
|
||||||
|
|
||||||
def setup_paths(self):
|
def setup_paths(self):
|
||||||
"""
|
"""
|
||||||
@ -452,11 +455,12 @@ class MacosxBuilder(object):
|
|||||||
copy(os.path.join(self.script_path, 'LICENSE.txt'), os.path.join(self.dist_path, 'LICENSE.txt'))
|
copy(os.path.join(self.script_path, 'LICENSE.txt'), os.path.join(self.dist_path, 'LICENSE.txt'))
|
||||||
self._print_verbose('... mudraw')
|
self._print_verbose('... mudraw')
|
||||||
if self.mudraw_bin and os.path.isfile(self.mudraw_bin):
|
if self.mudraw_bin and os.path.isfile(self.mudraw_bin):
|
||||||
copy(os.path.join(self.mudraw_bin), os.path.join(self.dist_path, 'mudraw'))
|
copy(self.mudraw_bin, os.path.join(self.dist_path, 'mudraw'))
|
||||||
self.relink_mudraw()
|
self.relink_mudraw()
|
||||||
elif self.mutool_bin and os.path.isfile(self.mutool_bin):
|
elif self.mutool_bin and os.path.isfile(self.mutool_bin):
|
||||||
copy(os.path.join(self.mutool_bin), os.path.join(self.dist_path, 'mutool'))
|
copy(self.mutool_bin, os.path.join(self.dist_path, 'mutool'))
|
||||||
self.relink_mutool()
|
self.relink_mutool()
|
||||||
|
copy(self.mutool_lib, os.path.join(self.dist_path, 'libjbig2dec.0.dylib'))
|
||||||
else:
|
else:
|
||||||
self._print('... WARNING: mudraw and mutool not found')
|
self._print('... WARNING: mudraw and mutool not found')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user