osx: Sign executable and libraries after bundling

This commit is contained in:
arch1t3cht 2023-10-17 18:26:49 +02:00
parent 07c4f26a8e
commit fabc6e436f

View file

@ -105,5 +105,14 @@ echo
echo "---- Fixing libraries ----"
sudo python3 "${SRC_DIR}/tools/osx-fix-libs.py" "${PKG_DIR}/Contents/MacOS/aegisub" || exit $?
echo
echo "---- Resigning ----"
# After bundling and rewriting dylib paths we need to resign everything.
if codesign -d "${PKG_DIR}/Contents/MacOS/aegisub"; then
for fname in "${PKG_DIR}/Contents/MacOS/"*; do
codesign -s ${AEGISUB_BUNDLE_SIGNATURE:--} -vf "${fname}"
done
fi
echo
echo "Done creating \"${PKG_DIR}\""