We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286f7bb commit a62ad43Copy full SHA for a62ad43
tools/osx-bundle.sh
@@ -105,5 +105,16 @@ echo
105
echo "---- Fixing libraries ----"
106
sudo python3 "${SRC_DIR}/tools/osx-fix-libs.py" "${PKG_DIR}/Contents/MacOS/aegisub" || exit $?
107
108
+echo
109
+echo "---- Signing ----"
110
+# Even if the binaries were already ad-hoc signed during compilation,
111
+# they need to be resigned after bundling and rewriting dylib paths.
112
+if codesign -d "${PKG_DIR}/Contents/MacOS/aegisub"; then
113
+ for fname in "${PKG_DIR}/Contents/MacOS/"*; do
114
+ codesign -s ${AEGISUB_BUNDLE_SIGNATURE:--} -vf "${fname}"
115
+ done
116
+ codesign -s ${AEGISUB_BUNDLE_SIGNATURE:--} -vf "${PKG_DIR}/"
117
+fi
118
+
119
echo
120
echo "Done creating \"${PKG_DIR}\""
0 commit comments