新增Via安装功能

This commit is contained in:
2024-01-30 10:15:14 +08:00
parent e94ebecfa2
commit 82b352d827
13 changed files with 113 additions and 34 deletions

View File

@@ -3,8 +3,13 @@
cat /etc/deepin_version | grep 23
if [[ $? != 0 ]]; then
# 如果不是
aapt "$@"
exit $?
# 判断系统是否有安装 aapt
which aapt > /dev/null
if [[ $? == 0 ]]; then
# 如果有安装
aapt "$@"
exit $?
fi
fi
# 如果是
programPath=$(cd $(dirname $0); pwd)