macOS: remove hardcoded paths for code signing python/dylib/so
Differential Revision: https://developer.blender.org/D5234
This commit is contained in:

committed by
Brecht Van Lommel

parent
8d4800990c
commit
b94df17ae5
@@ -124,11 +124,17 @@ sleep 5
|
|||||||
|
|
||||||
if [ ! -z "${C_CERT}" ]; then
|
if [ ! -z "${C_CERT}" ]; then
|
||||||
# Codesigning requires all libs and binaries to be signed separately.
|
# Codesigning requires all libs and binaries to be signed separately.
|
||||||
# TODO: use find to get the list automatically
|
echo -n "Codesigning Python"
|
||||||
echo -n "Codesigning..."
|
for f in $(find "${_mount_dir}/Blender.app/Contents/Resources" -name "python*"); do
|
||||||
codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app/Contents/Resources/*/python/bin/python*"
|
if [ -x ${f} ] && [ ! -d ${f} ]; then
|
||||||
codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app/Contents/Resources/*/python/lib/python*/site-packages/libextern_draco.dylib"
|
codesign --timestamp --options runtime --sign "${C_CERT}" "${f}"
|
||||||
codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app/Contents/Resources/lib/libomp.dylib"
|
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}"
|
||||||
|
done
|
||||||
|
echo ; echo -n "Codesigning Blender.app"
|
||||||
codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app"
|
codesign --timestamp --options runtime --sign "${C_CERT}" "${_mount_dir}/Blender.app"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
@@ -161,6 +167,7 @@ if [ ! -z "${N_USERNAME}" ] && [ ! -z "${N_PASSWORD}" ] && [ ! -z "${N_BUNDLE_ID
|
|||||||
# Send to Apple
|
# Send to Apple
|
||||||
echo -n "Sending ${DEST_DMG} for notarization..."
|
echo -n "Sending ${DEST_DMG} for notarization..."
|
||||||
_tmpout=$(mktemp)
|
_tmpout=$(mktemp)
|
||||||
|
echo xcrun altool --notarize-app -f "${DEST_DMG}" --primary-bundle-id "${N_BUNDLE_ID}" --username "${N_USERNAME}" --password "${N_PASSWORD}"
|
||||||
xcrun altool --notarize-app -f "${DEST_DMG}" --primary-bundle-id "${N_BUNDLE_ID}" --username "${N_USERNAME}" --password "${N_PASSWORD}" >${_tmpout} 2>&1
|
xcrun altool --notarize-app -f "${DEST_DMG}" --primary-bundle-id "${N_BUNDLE_ID}" --username "${N_USERNAME}" --password "${N_PASSWORD}" >${_tmpout} 2>&1
|
||||||
|
|
||||||
# Parse request uuid
|
# Parse request uuid
|
||||||
|
Reference in New Issue
Block a user