osx: Sign executable and libraries after bundling
This commit is contained in:
parent
07c4f26a8e
commit
fabc6e436f
1 changed files with 9 additions and 0 deletions
|
@ -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}\""
|
||||
|
|
Loading…
Reference in a new issue