Mac OS X Packaging Improvements

Merged, abandoned or rejected pull requests are moved here to clear the main Pull Requests forum.
blacey
Posts: 367
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 http://www.freecadweb.org/tracker/view.php?id=2414

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 590 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/ArchiveNameFromVersionHeader.py - 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 https://github.com/FreeCAD/FreeCAD/pull/113
The associated Mantis bug is http://www.freecadweb.org/tracker/view.php?id=2414
The genesis for this pull request is from this discussion - viewtopic.php?f=10&t=13341&start=100#p116543

Cheers,
Bruce
User avatar
yorik
Site Admin
Posts: 11577
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Mac OS X Packaging Improvements

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

merged!