title: How to download notarized files from Apple?
body: <p>I have successfully notarized a plugin via command line for a Mac application i'm developing plugins for. This plugin is intended for distribution outside of Mac appstore.</p>
  
  <pre><code>xcrun altool --notarize-app --primary-bundle-id "com.demo.bundle.id" --username "email@abc.com" --password "xxx-x-xxxx-xx" --file Plugin.zip
  </code></pre>
  
  <p>Got an email that it has been successfully notarized and the email has <a href="https://help.apple.com/xcode/mac/current/#/dev88332a81e?sub=dev8a32007db" rel="noreferrer">instructions</a> on how to export for distribution. However, it's an instruction for XCode UI but I did the notarization via command line so the instructions doesn't apply for me. Is there a commandline to download the notarized file(<code>Plugin.zip</code>) or else how do I get the <code>Plugin.zip</code> file from Apple to distribute it on my website?</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>Turns out you can notarize a .zip file but you can't staple it. So I decided to create a .pkg to distribute my plugin instead of distributing via a zip file.</p>
  
  <p>Here's the steps I followed to successfully notarize and staple my plugin, lets say my plugin name is <code>FileConvertor.PluginExtension</code></p>
  
  <ol>
  <li>Code sign your binaries to be included in your installer. <code>codesign --sign "Developer ID Application: Developer Name" --verbose=4 --deep --force --strict FileConvertor.PluginExtension</code></li>
  <li>Create your installer (.pkg) adding the above code signed <code>.PluginExtension</code></li>
  <li>Now sign your installer with the installer certificate. <code>productsign --sign "Developer ID Installer: Developer Name" ./FileConvertor.pkg ./FileConvertorSigned.pkg</code></li>
  <li>Send the signed installer for notarization <code>xcrun altool --notarize-app --primary-bundle-id "com.demo.plugin" --username xyz@abc.com" --password "xxxx-xxxx-xxxx-xxxx" --file FileConvertorSigned.pkg</code></li>
  <li>If sucessfully notarized, staple your installer <code>xcrun stapler staple FileConvertorSigned.pkg</code></li>
  <li>Distribute your installer on the web</li>
  </ol>