新增检测移除功能
This commit is contained in:
parent
7b8af878ab
commit
00e306208b
|
@ -102,6 +102,22 @@ cd `dirname $0`
|
|||
sudo cp uengine-loading-ubuntu.desktop /usr/share/applications
|
||||
sudo cp uengine-loading-ubuntu.desktop /etc/xdg/autostart
|
||||
sudo chmod 755 /etc/xdg/autostart/uengine-loading-ubuntu.desktop
|
||||
# 检测最后安装是否成功
|
||||
which uengine
|
||||
if [[ $? != 0 ]]; then
|
||||
# 安装失败
|
||||
sudo rm /usr/share/applications/uengine-loading-ubuntu.desktop
|
||||
sudo rm /etc/xdg/autostart/uengine-loading-ubuntu.desktop
|
||||
sudo rm /usr/bin/uengine-loading-ubuntu
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
sudo rm -rfv /home/$username/uengine
|
||||
sudo rm -rfv /home/$username/uengine-launch
|
||||
done
|
||||
zenity --error --no-wrap '--text=抱歉,UEngine 安装失败,已移除安装时进行的修改'
|
||||
exit
|
||||
fi
|
||||
# echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或在启动器手动运行或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
|
|
Loading…
Reference in New Issue