uengine-runner/aapt/run-aapt.sh

20 lines
398 B
Bash
Raw Normal View History

2024-01-29 18:33:14 +08:00
#!/bin/bash
# 判断是不是 Deepin23
cat /etc/deepin_version | grep 23
if [[ $? != 0 ]]; then
# 如果不是
2024-01-29 21:27:47 +08:00
# 判断系统是否有安装 aapt
which aapt > /dev/null
if [[ $? == 0 ]]; then
# 如果有安装
aapt "$@"
exit $?
fi
2024-01-29 18:33:14 +08:00
fi
# 如果是
programPath=$(cd $(dirname $0); pwd)
echo $programPath
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$programPath"
$programPath/aapt "$@"
exit $?