...
- 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. Update the permissions of the `installermac.sh` script which will be used to create the installer
Code Block language bash $ chmod 777 distpreparation/netbeans/XX.X/vcX/installer/installermac.sh
Generate the installer
Code Block language bash $ 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
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 language bash rm -rf distpreparation/netbeans/XX.X/vcX/installer/nbbuild/installer/mac/newbuild/netBeans/nbide/build
Installers will be generated under dist/bundles
Notorize & Staple Installer
Code Block language bash 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 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 "AC_USERNAME" -p "@keychain:AC_PASSWORD"Info "AC_USERNAME" = Your Apache Apple Developer username, for example: johnmcdonnell@apache.org
Once the notarisation process is complete, you need staple this to your distribution:
Code Block language bash xcrun stapler staple Apache-NetBeans-XX.X-bin-macosx.dmg
- Sign Installers installers & Upload upload to SVN & start vote thread
Same steps as required for the Windows and Linux installers
...