Revision: 13772
http://sourceforge.net/p/skim-app/code/13772
Author: hofman
Date: 2023-11-17 22:59:54 +0000 (Fri, 17 Nov 2023)
Log Message:
-----------
Codesign components of Sparkle 2
Modified Paths:
--------------
trunk/codesign_skim.sh
Modified: trunk/codesign_skim.sh
===================================================================
--- trunk/codesign_skim.sh 2023-11-17 16:01:27 UTC (rev 13771)
+++ trunk/codesign_skim.sh 2023-11-17 22:59:54 UTC (rev 13772)
@@ -17,6 +17,7 @@
fi
SKIM_ENTITLEMENTS=$(dirname "$0")/Skim.entitlements
+DOWNLOADER_ENTITLEMENTS=$(dirname
"$0")/vendorsrc/andymatuschak/Sparkle/Downloader/org.sparkle-project.Downloader.entitlements
# see
https://mjtsai.com/blog/2021/02/18/code-signing-when-building-on-apple-silicon/
# and https://developer.apple.com/forums/thread/130855
@@ -27,8 +28,12 @@
# have to sign frameworks first
LOCATION="${CONTENTS_DIR}/Frameworks"
codesign ${CODESIGN_FLAGS} -s "${IDENTITY}" "${LOCATION}/SkimNotes.framework"
-codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" --identifier
"org.sparkle-project.Sparkle.Autoupdate.fileop"
"${LOCATION}/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/MacOS/fileop"
-codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}"
"${LOCATION}/Sparkle.framework/Versions/A/Resources/Autoupdate.app"
+
+SPARKLE_LOCATION="${LOCATION}/Sparkle.framework/Versions/Current"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" -i
"org.sparkle-project.Sparkle.Autoupdate" "${SPARKLE_LOCATION}/Autoupdate"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}"
${CODESIGN_OPTIONS:+--entitlements "${DOWNLOADER_ENTITLEMENTS}"}
"${SPARKLE_LOCATION}/XPCServices/Downloader.xpc"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}"
"${SPARKLE_LOCATION}/XPCServices/Installer.xpc"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}"
"${SPARKLE_LOCATION}/Autoupdate.app"
codesign ${CODESIGN_FLAGS} -s "${IDENTITY}" "${LOCATION}/Sparkle.framework"
LOCATION="${CONTENTS_DIR}/Library"
@@ -40,7 +45,7 @@
codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} --sign "${IDENTITY}"
"${LOCATION}/SkimTransitions.plugin/Contents/MacOS/SkimTransitions"
LOCATION="${CONTENTS_DIR}/SharedSupport"
-codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" --identifier
"net.sourceforge.skim-app.tool.skimnotes" "${LOCATION}/skimnotes"
-codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" --identifier
"net.sourceforge.skim-app.tool.skimpdf" "${LOCATION}/skimpdf"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" -i
"net.sourceforge.skim-app.tool.skimnotes" "${LOCATION}/skimnotes"
+codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}" -i
"net.sourceforge.skim-app.tool.skimpdf" "${LOCATION}/skimpdf"
codesign ${CODESIGN_FLAGS} ${CODESIGN_OPTIONS} -s "${IDENTITY}"
${CODESIGN_OPTIONS:+--entitlements "${SKIM_ENTITLEMENTS}"} "${SKIM_BUNDLE_PATH}"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit