[Bf-blender-cvs] [1c73b604848] master: macOS: allow bundle script to re-codesign a Blender.app that was already signed

Brecht Van Lommel noreply at git.blender.org
Fri Jul 12 19:51:53 CEST 2019


Commit: 1c73b604848a1fd7cfffc5bc71b05ad29db3c3b2
Author: Brecht Van Lommel
Date:   Fri Jul 12 18:58:44 2019 +0200
Branches: master
https://developer.blender.org/rB1c73b604848a1fd7cfffc5bc71b05ad29db3c3b2

macOS: allow bundle script to re-codesign a Blender.app that was already signed

===================================================================

M	release/darwin/bundle.sh

===================================================================

diff --git a/release/darwin/bundle.sh b/release/darwin/bundle.sh
index fed91d26b7f..14c3ba81745 100755
--- a/release/darwin/bundle.sh
+++ b/release/darwin/bundle.sh
@@ -126,15 +126,18 @@ if [ ! -z "${C_CERT}" ]; then
     # Codesigning requires all libs and binaries to be signed separately.
     echo -n "Codesigning Python"
     for f in $(find "${_mount_dir}/Blender.app/Contents/Resources" -name "python*"); do
-	if [ -x ${f} ] && [ ! -d ${f} ]; then
-	    codesign --timestamp --options runtime --sign "${C_CERT}" "${f}"
-	fi
+        if [ -x ${f} ] && [ ! -d ${f} ]; then
+            codesign --remove-signature "${f}"
+            codesign --timestamp --options runtime --sign "${C_CERT}" "${f}"
+        fi
     done
     echo ; echo -n "Codesigning .dylib and .so libraries"
     for f in $(find "${_mount_dir}/Blender.app" -name "*.dylib" -o -name "*.so"); do
-	codesign --timestamp --options runtime --sign "${C_CERT}" "${f}"
+        codesign --remove-signature "${f}"
+        codesign --timestamp --options runtime --sign "${C_CERT}" "${f}"
     done
     echo ; echo -n "Codesigning Blender.app"
+    codesign --remove-signature "${_mount_dir}/Blender.app"
     codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app"
     echo
 else



More information about the Bf-blender-cvs mailing list