mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 10:08:28 +08:00
43 lines
2.3 KiB
Bash
Executable File
43 lines
2.3 KiB
Bash
Executable File
#!/bin/sh
|
||
# 使用系统默认的 sh 运行
|
||
#################################################################################################################
|
||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||
# 版本:2.3.0
|
||
# 更新时间:2022年10月02日
|
||
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
|
||
# 基于 sh
|
||
#################################################################################################################
|
||
# 非强制性的必应组件,所以成功不成功都行
|
||
echo 安装组件
|
||
python3 -m pip install --upgrade pynput --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple > /dev/null | true
|
||
echo 执行完成
|
||
# 如果为非 X86 PC,可以删除掉一些无用组件(主要是用不了)
|
||
if [ `arch` != "x86_64" ]; then
|
||
echo 非X86架构,删除对非X86架构无用的组件
|
||
# 删除虚拟机功能
|
||
rm -rf /opt/apps/deepin-wine-runner/StartVM.sh
|
||
rm -rf /opt/apps/deepin-wine-runner/RunVM.sh
|
||
rm -rf /opt/apps/deepin-wine-runner/VM
|
||
rm -rf /usr/share/applications/spark-deepin-wine-runner-control-vm.desktop
|
||
rm -rf /usr/share/applications/spark-deepin-wine-runner-start-vm.desktop
|
||
# 删除安装 wine 功能
|
||
rm -rf "/opt/apps/deepin-wine-runner/wine install"
|
||
# 这个注释掉的理论可用,不移除
|
||
#rm -rf "/opt/apps/deepin-wine-runner/wine"
|
||
rm -rf /usr/bin/deepin-wine-runner-wine-installer
|
||
rm -rf /usr/bin/deepin-wine-runner-wine-install-deepin23
|
||
rm -rf /usr/bin/deepin-wine-runner-wine-install
|
||
rm -rf /usr/bin/deepin-wine-runner-winehq-install
|
||
rm -rf /opt/apps/deepin-wine-runner/InstallWineOnDeepin23.py
|
||
rm -rf /opt/apps/deepin-wine-runner/sparkstore.list
|
||
rm -rf /opt/apps/deepin-wine-runner/AllInstall.py
|
||
rm -rf /opt/apps/deepin-wine-runner/InstallNewWineHQ.sh
|
||
fi
|
||
# 到时候切换 gpg 源会方便很多
|
||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FD6EEA1F20CD4B27 > /dev/null
|
||
apt update > /dev/null | true
|
||
# 设置目录权限,让用户可读可写,方便后续删除组件
|
||
chmod 777 -R /opt/apps/deepin-wine-runner
|
||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||
curl https://304626p927.goho.co/spark-deepin-wine-runner/Install.php?Version=2.5.0 -s > /dev/null | true
|