优化脚本

This commit is contained in:
gfdgd_xi 2023-01-19 22:21:47 +08:00
parent a1d87a6365
commit aeb3bb0310
6 changed files with 18 additions and 6 deletions

View File

@ -68,7 +68,7 @@ if len(sys.argv) - optionAll < 2:
command = ""
for i in sys.argv[1:]:
command += f"\"{i}\" "
print("Wine 运行器自动配置文件解析器(基于 Bash")
print("UEngine 运行器自动配置文件解析器(基于 Bash")
print(f"版本:{version}")
print(f"©2020~{time.strftime('%Y')} gfdgd xi、为什么您不喜欢熊出没和阿布呢")
print("--------------------------------------------------------------")

View File

@ -42,5 +42,6 @@
"installother": "安装未归类的运行库到指定容器\n参数数量1\n参数介绍在安装其它运行库工具的编号如 2 MFC运行库",
"decompressionbottle": "解压用 wine 打包的 deb 包内的容器到指定路径\n参数数量2\n参数介绍deb 包路径+要解压到的路径",
"programforum": "打开程序论坛\n参数数量0\n参数介绍无",
"installmsi": "安装 MSI 文件到指定容器\n参数数量1\n参数介绍msi 文件路径"
"installmsi": "安装 MSI 文件到指定容器\n参数数量1\n参数介绍msi 文件路径",
"installapk": "安装 APK 文件到 UEngine\n参数数量1\n参数介绍apk 文件路径"
}

View File

@ -665,7 +665,7 @@ if __name__ == "__main__":
except:
print("错误:无法读取该文件,无法继续")
sys.exit(1)
print("Wine 运行器自动配置文件解析器")
print("UEngine 运行器自动配置文件解析器")
print(f"版本:{version}")
print(f"©2020~{time.strftime('%Y')} gfdgd xi、为什么您不喜欢熊出没和阿布呢")
print("--------------------------------------------------------------")

View File

@ -20,6 +20,8 @@
以前的版本。如需连接UEngine请安装adb补丁</strong> </p>
</blockquote>
<hr />
<h2 id=""></h2>
<hr/>
<h2 id='详细帮助'>详细帮助</h2>
<h3 id='如何安装自己的-apk'>如何安装自己的 Apk</h3>
<p><em>请保证您已经把要安装的Apk下载到电脑本地并保证Apk完整且有权限</em></p>

View File

@ -1799,7 +1799,7 @@ if not os.path.exists("/usr/bin/uengine"):
# Deepin/UOS 用户
if "deepin" in SystemVersion.lower() or "uos" in SystemVersion.lower():
if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n安装完后重新启动该程序即可") == QtWidgets.QMessageBox.Yes:
OpenTerminal(f"'pkexec apt install uengine -y")
OpenTerminal(f"pkexec apt install uengine -y")
sys.exit(0)
# 非 Deepin/UOS 用户
# 因为安装器出现问题,所以废弃

View File

@ -37,16 +37,25 @@ if [ "$1" = "purge" ]; then
echo /home/$username
if [ -d "/home/$username/.config/uengine-runner/" ]; then
rm -rf "/home/$username/.config/uengine-runner/"
rm -rf "/home/$username/.local/share/uengine-runner"
# 删除 QWebEngine 记录
rm -rf "/home/$username/.local/share/uengine-runner"
rm -rf "/home/$username/.local/share/AutoConfig.py"
rm -rf "/home/$username/.config/share/uengine-runner"
rm -rf "/home/$username/.config/share/AutoConfig.py"
rm -rf "/home/$username/.cache/share/uengine-runner"
rm -rf "/home/$username/.cache/share/AutoConfig.py"
fi
done
# 清理 root 用户的配置文件
echo /root
if [ -d "/root/.config/uengine-runner/" ]; then
rm -rf "/root/.config/uengine-runner/"
rm -rf "/root/.local/share/uengine-runner"
rm -rf "/root/.local/share/AutoConfig.py"
rm -rf "/root/.config/share/uengine-runner"
rm -rf "/root/.config/share/AutoConfig.py"
rm -rf "/root/.cache/share/uengine-runner"
rm -rf "/root/.cache/share/AutoConfig.py"
fi
else
echo "非 purge跳过清理"