mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 19:12:04 +08:00
移除废弃的文件
This commit is contained in:
@@ -62,39 +62,6 @@ if [[ `arch` != "x86_64" ]]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/AllInstall.py
|
||||
rm -rf /opt/apps/deepin-wine-runner/InstallNewWineHQ.sh
|
||||
fi
|
||||
# 处理 VM 工具
|
||||
vmPath=/opt/apps/deepin-wine-runner/VM/VirtualMachine-`dpkg --print-architecture`
|
||||
echo 当前架构为:`dpkg --print-architecture`
|
||||
if [ -f $vmPath ]; then
|
||||
echo 虚拟机工具有该架构的预编译文件
|
||||
# 移除辅助文件
|
||||
rm -f /opt/apps/deepin-wine-runner/VM/VirtualMachine
|
||||
# 移动
|
||||
mv $vmPath /opt/apps/deepin-wine-runner/VM/VirtualMachine
|
||||
rm -f /opt/apps/deepin-wine-runner/VM/VirtualMachine-*
|
||||
else
|
||||
echo 虚拟机工具无该架构的预编译文件
|
||||
rm -f /opt/apps/deepin-wine-runner/VM/VirtualMachine-*
|
||||
fi
|
||||
echo 处理完成!
|
||||
# 修复 3.3.0.1 Box86 源挂了的问题
|
||||
if [ -f /etc/apt/sources.list.d/box86.list ]; then
|
||||
bash -c "echo deb http://seafile.jyx2048.com:2345/spark-deepin-wine-runner/data/box86-debs/debian ./ > /etc/apt/sources.list.d/box86.list"
|
||||
fi
|
||||
# Gitlink 源挂了
|
||||
# 到时候切换 gpg 源会方便很多
|
||||
#if [ -r /etc/apt/sources.list.d/better-dde.list ]; then
|
||||
# if [ -d /usr/share/deepin-installer ]; then
|
||||
# # 用于修复 Deepin Community Live CD Install 版签名过期的问题
|
||||
# wget -P /tmp/gfdgd-xi-sources https://code.gitlink.org.cn/gfdgd_xi/gfdgd-xi-apt-mirrors/raw/branch/master/gpg.asc
|
||||
# rm -rfv /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg | true
|
||||
# cp -v /tmp/gfdgd-xi-sources/gpg.asc.gpg /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg
|
||||
# # 用于修复 2022.11.25 Better DDE 导致的 Deepin Community Live CD Install 版问题
|
||||
# # 移除 Better DDE 源
|
||||
# rm -rfv /etc/apt/sources.list.d/better-dde.list
|
||||
# apt update > /dev/null 2>&1 | true
|
||||
# fi
|
||||
#fi
|
||||
# 设置目录权限,让用户可读可写,方便后续删除组件
|
||||
chmod 777 -R /opt/apps/deepin-wine-runner > /dev/null 2>&1 | true
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
|
||||
Reference in New Issue
Block a user