From 66c8d003d90874bd333fce69cc282ab24a42cd30 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mauro-balades@users.noreply.github.com> Date: Thu, 9 Jan 2025 08:30:10 +0100 Subject: [PATCH] Update codesign.bash Signed-off-by: mr. m <91018726+mauro-balades@users.noreply.github.com> --- build/codesign/codesign.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/codesign/codesign.bash b/build/codesign/codesign.bash index 2fc6c5142..bba6ec2d5 100644 --- a/build/codesign/codesign.bash +++ b/build/codesign/codesign.bash @@ -111,6 +111,9 @@ echo "-------------------------------------------------------------------------" set -x +# move Zen_Browser.provisionprofile to the Contents directory +cp Zen_Browser.provisionprofile "${BUNDLE}"/Contents/embedded.provisionprofile + # Clear extended attributes which cause codesign to fail xattr -cr "${BUNDLE}" @@ -119,6 +122,7 @@ xattr -cr "${BUNDLE}" codesign --force -o runtime --verbose --sign "$IDENTITY" \ "${BUNDLE}/Contents/Library/LaunchServices/org.mozilla.updater" \ "${BUNDLE}/Contents/MacOS/XUL" \ +"${BUNDLE}"/Contents/embedded.provisionprofile \ "${BUNDLE}/Contents/MacOS/pingsender" \ "${BUNDLE}/Contents/MacOS/*.dylib" \ @@ -150,9 +154,6 @@ codesign --force -o runtime --verbose --sign "$IDENTITY" --deep \ # Validate codesign -vvv --deep --strict "${BUNDLE}" -# move Zen_Browser.provisionprofile to the Contents directory -cp Zen_Browser.provisionprofile "${BUNDLE}"/Contents/embedded.provisionprofile - # Staple the ticket xcrun stapler staple --verbose "${BUNDLE}" || exit 0