Repair the MacOS bundle (.dmg package)
The MacOS bundle was not functioning due to several problems, like
Library not loaded: @rpath/_libBornAgainGUI.so
Referenced from: /Volumes/*/bornagain.app/Contents/MacOS/BornAgain
Reason: image not found
The previous Python script, cmake/pack/fix_apple_bundle.py
, is replaced by a zsh script which improves and corrects the bundle-producing mechanism:
- Missing libraries are added.
- All dependencies are found automatically up to an arbitrary depth.
- The required Qt framework is added automatically (no need to mention Qt components manually).
- References and RPATHs are calculated and set automatically.
- Python dependencies are found and their references and RPATHs are set correctly.
- Everything is documented in detail.
The produced MacOS bundle is tested successfully on Catalina (macOS 10.15, x86_64). Further tests are needed.
Resolves issues #177 (closed) #234 (closed)
Related to milestone %0 Stable for installation and use