Revision: 28445
          http://sourceforge.net/p/bibdesk/svn/28445
Author:   hofman
Date:     2023-11-18 15:04:40 +0000 (Sat, 18 Nov 2023)
Log Message:
-----------
Codesign components of Sparkle 2

Modified Paths:
--------------
    trunk/bibdesk/codesign_bibdesk.sh

Modified: trunk/bibdesk/codesign_bibdesk.sh
===================================================================
--- trunk/bibdesk/codesign_bibdesk.sh   2023-11-18 10:41:10 UTC (rev 28444)
+++ trunk/bibdesk/codesign_bibdesk.sh   2023-11-18 15:04:40 UTC (rev 28445)
@@ -17,6 +17,7 @@
 fi
 
 BIBDESK_ENTITLEMENTS=$(dirname "$0")/BibDesk.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
@@ -31,8 +32,12 @@
 codesign ${CODESIGN_FLAGS} -s "${IDENTITY}" "${LOCATION}/FileView.framework"
 codesign ${CODESIGN_FLAGS} -s "${IDENTITY}" 
"${LOCATION}/SkimNotesBase.framework"
 codesign ${CODESIGN_FLAGS} -s "${IDENTITY}" "${LOCATION}/yaz.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/Contents/MacOS/Autoupdate"
+
+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"

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to