mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
macOS: allow bundle script to re-codesign a Blender.app that was already signed
This commit is contained in:
parent
b94df17ae5
commit
1c73b60484
1 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue