This commit is contained in:
rain-gfd 2023-05-02 17:26:02 +08:00
parent ef1b7800c6
commit b358b56974
2 changed files with 6 additions and 4 deletions

View File

@ -46,9 +46,11 @@ if [[ $? != 0 ]]; then
exit exit
fi fi
uname -r | grep 5.17.3 uname -r | grep 5.17.3
if [[ -f /usr/bin/uengine-loading-binder ]] && [[ $? != 0 ]]; then if [[ ! -f /usr/bin/uengine-loading-binder ]]; then
echo 加载 binder if [[ $? != 0 ]]; then
pkexec /usr/bin/uengine-loading-binder echo 加载 binder
pkexec /usr/bin/uengine-loading-binder
fi
fi fi
notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务启动完成" -a uengine-runner notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务启动完成" -a uengine-runner
bad=0 bad=0

View File

@ -135,7 +135,7 @@ if [[ $? != 0 ]]; then
fi fi
# 拷贝 binder loader # 拷贝 binder loader
sudo cp "${programPath}/LoadingBinder/load.sh" /usr/bin/uengine-loading-binder -v sudo cp "${programPath}/LoadingBinder/load.sh" /usr/bin/uengine-loading-binder -v
sudo chmod +r /usr/bin/uengine-loading-binder sudo chmod 777 -Rv /usr/bin/uengine-loading-binder
sudo cp "${programPath}/pkexec/com.deepin.pkexec.binder.loader.policy" /usr/share/polkit-1/actions/ -v sudo cp "${programPath}/pkexec/com.deepin.pkexec.binder.loader.policy" /usr/share/polkit-1/actions/ -v
# echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用" # echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
# 这里直接运行 run_daemon.sh运行 launch_uengine.sh 好像不行 # 这里直接运行 run_daemon.sh运行 launch_uengine.sh 好像不行