Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-12 19:58:44 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-12 20:19:10 +0300
commit1c73b604848a1fd7cfffc5bc71b05ad29db3c3b2 (patch)
tree546e2d2831c4cdb3ed9fe76613f9b1c18efd80ff /release/darwin
parentb94df17ae56583c8139cd225dcc69e032fe8d788 (diff)
macOS: allow bundle script to re-codesign a Blender.app that was already signed
Diffstat (limited to 'release/darwin')
-rwxr-xr-xrelease/darwin/bundle.sh11
1 files changed, 7 insertions, 4 deletions
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