Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download both the `dist` and `distpreparation` folders from Jenkins, and unzip it in a directory of your choice.
    Apache NetBeans is built on the Apache Jenkins: https://ci-builds.apache.org/job/Netbeans/job/netbeans-TLP/job/netbeans/ Based on the version your generating an installer for ensure you download the correct files for the release/job as outlined in the main Apache NetBeans Release vote thread.

  2. Update the permissions of the `installermac.sh` script which will be used to create the installer

    Code Block
    languagebash
    $ chmod 777 distpreparation/netbeans/XX.X/vcX/installer/installermac.sh


  3. Generate the installer

    Code Block
    languagebash
    $ distpreparation/netbeans/XX.X/vcX/installer/installermac.sh dist/netbeans/XX.X/vcX/netbeans-XX.X-bin.zip XX.X YYMMDD certificate.txt
    


    Note
    certificate.txt is a file containing your Apple Developer ID Certificate
    1. Test the Installer locally

      In order to test the installer works locally you will need to first remove files created during the previous step, once this is removed you can install Apache NetBeans as normal from the newly created installer:

      Code Block
      languagebash
      rm -rf distpreparation/netbeans/XX.X/vcX/installer/nbbuild/installer/mac/newbuild/netBeans/nbide/build

      Installers will be generated under dist/bundles

  4. Notorize & Staple Installer

    Code Block
    languagebash
    xcrun altool --notarize-app --primary-bundle-id "org.apache.netbeans-XX.X" -u "AC_USERNAME" -p "@keychain:AC_PASSWORD" --file 
    Apache-NetBeans-XX.X-bin-macosx.dmg


    Info
    "AC_USERNAME" = Your Apache Apple Developer username, for example: johnmcdonnell@apache.org


    Info

    Notarising the application can take a few minutes, you can check the progress of the notorization process via (where UUID is the UUID provided when you started the notarization process):
    $ xcrun altool --notarization-info <UUID> -u "johnmcdonnell@apache.org" -p "@keychain:AC_PASSWORD"

    Once the notarisation process is complete, you need staple this to your distribution:


    Code Block
    languagebash
    xcrun stapler staple Apache-NetBeans-XX.X-bin-macosx.dmg


  5. Sign Installers & Upload to SVN
    Same as required for the Windows and Linux installers

...