title: Making macOS Installer Packages which are Developer ID ready
body: <p>Note: This is for <a href="https://en.wikipedia.org/wiki/Installer_(macOS)" rel="noreferrer">OS X Installer</a> packages only, packages for submission to the <a href="https://en.wikipedia.org/wiki/Mac_App_Store" rel="noreferrer">Mac App Store</a> follow different rules.</p>
  
  <p>Because of Mountain Lion's <a href="https://en.wikipedia.org/wiki/Gatekeeper_(macOS)" rel="noreferrer">Gatekeeper</a> I finally had to take my <a href="http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/packagemaker.1.html" rel="noreferrer">PackageMaker</a> build script behind the barn and shoot it. PackageMaker was already removed from Xcode and moved into "Auxiliary Tools for Xcode", so hopefully it will be soon forgotten.</p>
  
  <p>The question is how do I use <code>pkgbuild</code>, <code>productbuild</code>, and <code>pkgutil</code> to replace it?</p>