Skip to content

Commit

Permalink
osx: Sign executable and libraries after bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed Oct 15, 2023
1 parent 07c4f26 commit 7eb1304
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/osx-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/MacoOS/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}\""

0 comments on commit 7eb1304

Please sign in to comment.