Building the GPGTools Mail Bundle

 

The usual dance. You upgrade an OS X release and your Mail.app plugins get disabled. As they are working with unpublished APIs this isn’t in the least bit surprising. Apple really should get their act together and make Mail.app easily extensible – if they can’t include PGP support by default, at least make it easy for the good people that do. Changing the API between beta and GA is a dick move.

If you followed the link above you’ll know that the GPGTools mail bundle is moving to a paid model. That seems like a sensible decision to me. When they get that system setup i’ll pay. In the meantime i wanted to see how easy it was to build from the source. It’s not bad, but it doesn’t get you a working mail bundle.

IMPORTANT: the below won’t give you working GPGMail in Mail.app!! It just shows you how to build and install the currently broken version.

That said, if you’re interested here are the steps:

  • install XCode
  • clone the git project, In a terminal:
$ mkdir src ; cd src
$ git clone https://github.com/GPGTools/GPGMail.git
$ git checkout yosemite
$ cd GPGMail
$ make
  • the above will build everything but fail to create the actually bundles due to an issue with signing. To fix that open the Xcode project:
$ open ./GPGMail.xcodeproj
  • in ‘Navigate’ menu, select ‘Reveal in Project Navigator’. Open the GPGMail project in the left most pane, and select the ‘GPGMail_Updater.xcodeproj’ target. In the centre pane, in the ‘Identity’ section, change the ‘Signing’ to ‘None’. The project seems to auto-save on close… no idea, i’m not an Xcode user.
  • Now go back to the terminal and reexecute the ‘make’ command.
  • To manually install the bundle, close Mail.app, and copy execute the following:
$ cp -r ./build/Release/GPGMail.mailbundle ~/Library/Mail/Bundles/

And restart Mail.app. It should tell you that the bundle is incompatible and is being disabled. This is the part that the GPGTools developers are working on fixing.