3 # Helper script for the build process to apply entitlements
6 if [ "$1" = --install ]; then
17 trap 'rm "$DST.tmp"' exit
18 cp -pPf "$SRC" "$DST.tmp"
21 cd "$MESON_INSTALL_DESTDIR_PREFIX"
24 if test -n "$ENTITLEMENT"; then
25 codesign
--entitlements "$ENTITLEMENT" --force -s - "$SRC"
28 # Add the QEMU icon to the binary on Mac OS
29 Rez
-append "$ICON" -o "$SRC"