修复postinst在无网状态下导致uengine-loading-ubuntu出错的问题
This commit is contained in:
parent
ee6c7c45d8
commit
e3c342c07b
|
@ -81,7 +81,7 @@ sudo apt upgrade
|
|||
**※2、修复 UEngine 在 debian12 安装无法正常开启 UEngine 的问题;**
|
||||
**※3、修复在 UEngine 程序菜单检查到 UEngine 不存在但是无法安装的问题;**
|
||||
**※4、修复了 https://gitee.com/gfdgd-xi/uengine-runner/issues/I6B6C8 的问题;**
|
||||
**※5、优化了 postinst 脚本;**
|
||||
**※5、优化了 postinst 和 postrm 脚本;**
|
||||
6、添加 zenity 依赖;
|
||||
7、屏蔽在更新程序过程中杀死程序中输出的错误;
|
||||
8、修改下载 dtk 的网址。
|
||||
|
|
|
@ -35,7 +35,7 @@ if [[ $? != 0 ]] && [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
|||
done
|
||||
fi
|
||||
# 更新 uengine-loading-ubuntu(如果存在)
|
||||
if [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
||||
if [[ -f /usr/bin/uengine-loading-ubuntu ]] || [[ -f /usr/bin/uengine-loading-binder ]]; then
|
||||
echo 更新 uengine-loading-ubuntu
|
||||
cp /opt/apps/com.gitee.uengine.runner.spark/files/LoadingBinder/load.sh /usr/bin/uengine-loading-binder
|
||||
if [ -f /tmp/upgrade-uengine-loading-ubuntu ]; then
|
||||
|
@ -46,6 +46,10 @@ if [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
|||
if [ $? == 0 ]; then
|
||||
# 替换
|
||||
cp /tmp/upgrade-uengine-loading-ubuntu /usr/bin/uengine-loading-ubuntu
|
||||
|
||||
else
|
||||
cp /opt/apps/com.gitee.uengine.runner.spark/files/Help/shell/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||
fi
|
||||
chmod 755 /usr/bin/uengine-loading-ubuntu
|
||||
for username in $(ls /home)
|
||||
do
|
||||
|
@ -53,8 +57,7 @@ if [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
|||
cp /usr/bin/uengine-loading-ubuntu /home/$username/uengine-launch/run_daemon.sh
|
||||
chmod 755 /home/$username/uengine-launch/run_daemon.sh
|
||||
done
|
||||
fi
|
||||
rm /tmp/upgrade-uengine-loading-ubuntu
|
||||
rm -f /tmp/upgrade-uengine-loading-ubuntu
|
||||
fi
|
||||
# 刷新图标缓存
|
||||
# 因为 Ubuntu 的问题,省略
|
||||
|
|
Loading…
Reference in New Issue