28 Star 65 Fork 356

openEuler/qemu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entitlement.sh 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh -e
#
# Helper script for the build process to apply entitlements
in_place=:
if [ "$1" = --install ]; then
shift
in_place=false
fi
DST="$1"
SRC="$2"
ICON="$3"
ENTITLEMENT="$4"
if $in_place; then
trap 'rm "$DST.tmp"' exit
cp -pPf "$SRC" "$DST.tmp"
SRC="$DST.tmp"
else
cd "$MESON_INSTALL_DESTDIR_PREFIX"
fi
if test -n "$ENTITLEMENT"; then
codesign --entitlements "$ENTITLEMENT" --force -s - "$SRC"
fi
# Add the QEMU icon to the binary on Mac OS
Rez -append "$ICON" -o "$SRC"
SetFile -a C "$SRC"
mv -f "$SRC" "$DST"
trap '' exit
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/openeuler/qemu.git
git@gitee.com:openeuler/qemu.git
openeuler
qemu
qemu
master

搜索帮助