diff --git a/osx/macosx-builder.py b/osx/macosx-builder.py index 54603aa..57ef00d 100644 --- a/osx/macosx-builder.py +++ b/osx/macosx-builder.py @@ -242,6 +242,9 @@ class MacosxBuilder(object): self.dmgbuild = _which(self.config.get('executables', 'dmgbuild')) self.mudraw_bin = _which(self.config.get('executables', 'mudrawbin')) 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): """ @@ -452,11 +455,12 @@ class MacosxBuilder(object): copy(os.path.join(self.script_path, 'LICENSE.txt'), os.path.join(self.dist_path, 'LICENSE.txt')) self._print_verbose('... mudraw') 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() 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() + copy(self.mutool_lib, os.path.join(self.dist_path, 'libjbig2dec.0.dylib')) else: self._print('... WARNING: mudraw and mutool not found')