]> git.lyx.org Git - features.git/commitdiff
Cleanup code signing of the LyX application bundle
authorStephan Witt <switt@lyx.org>
Fri, 21 Feb 2020 08:45:09 +0000 (09:45 +0100)
committerStephan Witt <switt@lyx.org>
Fri, 22 May 2020 05:24:01 +0000 (07:24 +0200)
(cherry picked from commit a47412b9de8feebc16f3878aceb591e57f6a5c33)

development/LyX-Mac-binary-release.sh

index 5445e9b1c1421e9b5fe35974b5187c8a69b8448c..64d350ce7cabed4a5e8f5e7dafca82148318a505 100644 (file)
@@ -880,9 +880,14 @@ code_sign() {
        condir=$(content_directory "${target}"/lyx)
        appdir=$(dirname "${condir}")
        # have to sign frameworks first
+       for fwname in Aspell Hunspell LibMagic ; do
+               fwitem="${condir}"/$(framework_name "${fwname}")
+               if [ -d "${fwitem}" ]; then
+                       codesign --verbose --force --sign "${CODESIGN_IDENTITY}" "${fwitem}"
+               fi
+       done
        for csitem in \
                "${condir}"/Frameworks/Qt*.framework/Versions/${QtFrameworkVersion} \
-               "${condir}"/Frameworks/*.framework/lib*.dylib \
                "${condir}"/PlugIns/*/lib*.dylib \
                "${condir}"/Library/Spotlight/* \
                "${target}"/inkscape \
@@ -1060,7 +1065,7 @@ build_package() {
 if [ ${LyxOnlyPackage:-"no"} = "no" ]; then
        build_lyx
        convert_universal
-       test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}"
        copy_dictionaries
+       test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}"
 fi
 build_package