summaryrefslogtreecommitdiffstats
path: root/macosx/hbsign
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-08-06 09:36:45 +0200
committerDamiano Galassi <[email protected]>2020-08-06 09:36:45 +0200
commit3e1a2c5a2629f841d62d58e9b8ebd02fb77b85b6 (patch)
tree0137308caf9cbfae8c67780b6451d6fe648f1971 /macosx/hbsign
parentffe471d69837ac9ca8b1a83b565e50e9e60efd78 (diff)
MacGui: use a submodule for Sparkle.
Diffstat (limited to 'macosx/hbsign')
-rwxr-xr-xmacosx/hbsign17
1 files changed, 10 insertions, 7 deletions
diff --git a/macosx/hbsign b/macosx/hbsign
index 4a9d90194..8c1b0584b 100755
--- a/macosx/hbsign
+++ b/macosx/hbsign
@@ -158,16 +158,19 @@ for TARGET in "${@}"; do
find "${TARGET}"/Contents/Frameworks -type f -name ".DS_Store" -exec rm '{}' \; >/dev/null 2>&1
find "${TARGET}"/Contents/Frameworks -type f -name "*.textile" -exec rm '{}' \; >/dev/null 2>&1
find "${TARGET}"/Contents/Frameworks -type f -name "*.txt" -exec rm '{}' \; >/dev/null 2>&1
-
- echo " Signing Updater App"
- sign "${TARGET}"/Contents/Frameworks/Sparkle.framework/Resources/Updater.app
+ rm -rf "${TARGET}"/Contents/Frameworks/Sparkle.framework/Resources/Updater.app
+ rm -rf "${TARGET}"/Contents/Frameworks/Sparkle.framework/Resources/Autoupdate
echo " Signing Frameworks"
- sign "${TARGET}"/Contents/Frameworks/Sparkle.framework/Resources/Autoupdate
sign "${TARGET}"/Contents/Frameworks/Sparkle.framework/Versions/A
sign "${TARGET}"/Contents/Frameworks/HandBrakeKit.framework/Versions/A
+ echo " Signing Updater App"
+ sign "${TARGET}"/Contents/XPCServices/org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Updater.app
+ sign "${TARGET}"/Contents/XPCServices/org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Autoupdate
+
echo " Signing XPC Services"
+
OIFS="${IFS}"
IFS=$'\n'
XPC=($(find -s "${TARGET}"/Contents/XPCServices -type d -regex ".*/HandBrakeXPCService[0-9]*\.xpc" 2>/dev/null))
@@ -183,13 +186,13 @@ for TARGET in "${@}"; do
echo " Signing App Bundle"
sign "${TARGET}" main
- echo " Validating Updater App"
- verify "${TARGET}"/Contents/Frameworks/Sparkle.framework/Versions/Current/Resources/Updater.app
-
echo " Validating Frameworks"
verify "${TARGET}"/Contents/Frameworks/Sparkle.framework
verify "${TARGET}"/Contents/Frameworks/HandBrakeKit.framework
+ echo " Validating Updater App"
+ verify "${TARGET}"/Contents/XPCServices/org.sparkle-project.InstallerLauncher.xpc/Contents/MacOS/Updater.app
+
echo " Validating XPC Services"
for FILE in "${XPC[@]}" "${XPC_EXT[@]}"; do
verify "${FILE}"