From baa898516f40858e1956efafb171f51fe2331158 Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Mon, 4 Sep 2023 10:02:41 +0200 Subject: [PATCH] macOS: Fix signature Signed-off-by: Maxime Gervais --- Project/Mac/mkdmg.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Project/Mac/mkdmg.sh b/Project/Mac/mkdmg.sh index 496c6ba..5de0d40 100644 --- a/Project/Mac/mkdmg.sh +++ b/Project/Mac/mkdmg.sh @@ -63,10 +63,10 @@ if [ "$KIND" = "CLI" ]; then mkdir -p "${FILES}-Root/usr/local/bin" cp "../GNU/CLI/${APPNAME_lower}" "${FILES}-Root/usr/local/bin" - codesign -f -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}-Root/usr/local/bin/${APPNAME_lower}" + codesign -f --deep --options=runtime -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}-Root/usr/local/bin/${APPNAME_lower}" pkgbuild --root "${FILES}-Root" --identifier "net.mediaarea.${APPNAME_lower}.mac-${KIND_lower}" --sign "Developer ID Installer: ${SIGNATURE}" --version "${VERSION}" "${FILES}/${APPNAME_lower}.pkg" - codesign -f -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME_lower}.pkg" + codesign -f --deep --options=runtime -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME_lower}.pkg" fi @@ -111,8 +111,8 @@ if [ "$KIND" = "GUI" ]; then find "${FILES}/${APPNAME}.app/Contents/PlugIns" -name "*.dylib" -exec codesign -f -s "Developer ID Application: ${SIGNATURE}" --verbose "{}" \; - codesign -f -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME}.app/Contents/MacOS/${APPNAME}" - codesign -f -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME}.app" + codesign -f --deep --options=runtime -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME}.app/Contents/MacOS/${APPNAME}" + codesign -f --deep --options=runtime -s "Developer ID Application: ${SIGNATURE}" --verbose "${FILES}/${APPNAME}.app" fi echo