diff --git a/Help/shell/run_daemon.sh b/Help/shell/run_daemon.sh index 6a6fb65..500a13e 100644 --- a/Help/shell/run_daemon.sh +++ b/Help/shell/run_daemon.sh @@ -72,4 +72,4 @@ while [[ true ]]; do echo "UEngine 服务异常结束,重新启动($bad次)" notify-send -i /opt/apps/com.gitee.uengine.runner.spark/files/icon.png "UEngine 服务异常结束,重新启动($bad次)" -a uengine-runner -done \ No newline at end of file +done diff --git a/LoadingBinder/load.sh b/LoadingBinder/load.sh index 21d1378..aa31f48 100644 --- a/LoadingBinder/load.sh +++ b/LoadingBinder/load.sh @@ -2,6 +2,7 @@ if [[ `whoami` != root ]]; then echo 这不是 root 用户,结束 exit 1 +fi modprobe binder_linux mkdir /dev/binderfs -mount -t binder binder /dev/binderfs \ No newline at end of file +mount -t binder binder /dev/binderfs diff --git a/uengine-installer b/uengine-installer index f17ca94..b169e20 100755 --- a/uengine-installer +++ b/uengine-installer @@ -135,6 +135,7 @@ if [[ $? != 0 ]]; then fi # 拷贝 binder loader sudo cp "${programPath}/LoadingBinder/load.sh" /usr/bin/uengine-loading-binder -v +sudo chmod +r /usr/bin/uengine-loading-binder sudo cp "${programPath}/pkexec/com.deepin.pkexec.binder.loader.policy" /usr/share/polkit-1/actions/ -v # echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用" # 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行