mirror of https://github.com/odrling/Aegisub
osx: Sign executable and libraries after bundling
This commit is contained in:
parent
07c4f26a8e
commit
fabc6e436f
|
@ -105,5 +105,14 @@ echo
|
||||||
echo "---- Fixing libraries ----"
|
echo "---- Fixing libraries ----"
|
||||||
sudo python3 "${SRC_DIR}/tools/osx-fix-libs.py" "${PKG_DIR}/Contents/MacOS/aegisub" || exit $?
|
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
|
||||||
echo "Done creating \"${PKG_DIR}\""
|
echo "Done creating \"${PKG_DIR}\""
|
||||||
|
|
Loading…
Reference in New Issue