Use the --timestamp option for 'productsign' to add a secure timestamp.
See: https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution/resolving_common_notarization_issues
Signed-off-by: Michael Schuster <michael@schuster.ms>
if [ ! -z "$identity" ]; then
echo "Will try to sign the installer"
pushd $install_path
- productsign --sign "$identity" "$installer_file" "$installer_file.new"
+ productsign --timestamp --sign "$identity" "$installer_file" "$installer_file.new"
mv "$installer_file".new "$installer_file"
popd
else