Mac OS X Packaging Improvements

Merged, abandoned or rejected pull requests are moved here to clear the main Pull Requests forum.
Posts: 370
Joined: Tue Dec 08, 2015 11:28 pm

Mac OS X Packaging Improvements

Postby blacey » Tue Mar 08, 2016 5:05 am

In an effort to push OS X into FreeCAD first-class citizenship, we have improved the OS X application packaging to use the broadly accepted disk image distribution format, added support for 3D Connexion mice and resolved some python search path issues. This pull request is the first of two phases in development to routinely produce OS X builds using Travis CI so they maintain lockstep with master and the Linux PPAs.

Phase one is being clamored for starting with this viewtopic.php?f=10&t=13341&start=100#p116543 hence this pull request. These changes are benign to any platform other than OS X, enables anyone to produce an OS X build on master and is a pre-requisite for the unified travis configuration work described in

It is important to fold these changes in before the 0.16 release freeze so we can can produce an OS X build with the exact same commit # as all other platforms in case the unified travis config doesn't make the freeze cutoff - like everyone else, I have many other things on my plate besides FreeCAD :(

Here is a screenshot of an example disk image that we now use to distribute the OS X builds.
FreeCAD Disk Image Screenshot.jpg
FreeCAD Disk Image Screenshot.jpg (51.27 KiB) Viewed 692 times
For anyone who is interested, the changes comprise the following:
  • src/MacAppBundle/CMakeLists.txt - set python dependency paths adhering the Homebrew convention of installing them in prefix/libexec
  • src/Tools/ - Convenience script to produce an archive name from a serialized Version.h file using the convention
  • FreeCAD_{Major Version Number}.{Minor Version Number}-{Git Revision Count}.{Git Short SHA}-{OS}-{Arch}
  • src/MacAppBundle/DiskImage/layout.json & background.png - appdmg configuration to produce an os x disk image for FreeCAD application distribution
The actual pull request for review is
The associated Mantis bug is
The genesis for this pull request is from this discussion - viewtopic.php?f=10&t=13341&start=100#p116543

User avatar
Site Admin
Posts: 12070
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium

Re: Mac OS X Packaging Improvements

Postby yorik » Wed Mar 09, 2016 12:40 am