修复一些问题

This commit is contained in:
gfdgd xi 2023-03-19 19:29:04 +08:00
parent 8dc9db1f59
commit 542668311d
24 changed files with 330 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# 判断是否有安装 Qemu User # 判断是否有安装 Qemu User
which qemu-i386 > /dev/null which qemu-i386 > /dev/null
if [[ !$? ]]; then if [[ $? == 0 ]]; then
echo 您已安装过 Qemu User按回车键后退出 echo 您已安装过 Qemu User按回车键后退出
read read
exit 1 exit 1
@ -9,4 +9,4 @@ fi
sudo apt update sudo apt update
sudo apt install binfmt-support qemu-user qemu-user-static -y sudo apt install binfmt-support qemu-user qemu-user-static -y
echo 安装完成,按回车键后退出 echo 安装完成,按回车键后退出
read read

View File

@ -100,6 +100,10 @@ package:
cp -rv Model deb/opt/apps/deepin-wine-runner cp -rv Model deb/opt/apps/deepin-wine-runner
cp -rv API deb/opt/apps/deepin-wine-runner cp -rv API deb/opt/apps/deepin-wine-runner
cp -rv key deb/opt/apps/deepin-wine-runner cp -rv key deb/opt/apps/deepin-wine-runner
cp -rv InstallQemuUser.sh deb/opt/apps/deepin-wine-runner
cp -rv RemoveQemuUser.sh deb/opt/apps/deepin-wine-runner
cp -rv InstallBox86.sh deb/opt/apps/deepin-wine-runner
cp -rv InstallRuntime deb/opt/apps/deepin-wine-runner
python3 RemovePycacheFile.py python3 RemovePycacheFile.py
cp -rv deb /tmp/spark-deepin-wine-runner-builder cp -rv deb /tmp/spark-deepin-wine-runner-builder
mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin

View File

@ -1,5 +1,5 @@
Package: spark-deepin-wine-runner Package: spark-deepin-wine-runner
Version: 3.2.0 Version: 3.2.0-2
Maintainer: gfdgd xi <3025613752@qq.com> Maintainer: gfdgd xi <3025613752@qq.com>
Homepage: https://gitee.com/gfdgd-xi-org/deep-wine-runner Homepage: https://gitee.com/gfdgd-xi-org/deep-wine-runner
Architecture: all Architecture: all
@ -9,7 +9,7 @@ Check: binaries
Type: binary, udeb Type: binary, udeb
Priority: optional Priority: optional
Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, qemu-user, binfmt-support, qemu-user-static
Section: utils Section: utils
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner
Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner

View File

@ -0,0 +1,35 @@
#!/bin/bash
if [[ `whoami` != root ]]; then
echo 请以 root 权限运行
echo 按任意键退出
read
exit 1
fi
PCArch=`dpkg --print-architecture`
if [[ $PCArch != "aarch64" ]] && [[ $PCArch != "arm64" ]]; then
echo 非 ARM 架构,无法继续
echo 按任意键退出
read
exit 1
fi
which box86
if [[ $? == 0 ]]; then
echo 已安装,结束
echo 按回车键退出
read
exit 1
fi
#sudo wget https://itai-nelken.github.io/weekly-box86-debs/debian/box86.list -O /etc/apt/sources.list.d/box86.list
echo deb https://code.gitlink.org.cn/gfdgd_xi/weekly-box86-debs/raw/branch/main/debian / > /etc/apt/sources.list.d/box86.list
echo "adding key..."
wget -qO- https://code.gitlink.org.cn/gfdgd_xi/weekly-box86-debs/raw/branch/main/debian/KEY.gpg | sudo apt-key add -
installBox=box86
if [[ $PCArch == "arm64" ]]; then
installBox="box86 box64"
sudo dpkg --add-architecture armhf
fi
echo " + sudo apt update"
sudo apt update
sudo apt install -y $installBox
echo 安装完成!按回车键退出
read

View File

@ -0,0 +1,12 @@
#!/bin/bash
# 判断是否有安装 Qemu User
which qemu-i386 > /dev/null
if [[ $? == 0 ]]; then
echo 您已安装过 Qemu User按回车键后退出
read
exit 1
fi
sudo apt update
sudo apt install binfmt-support qemu-user qemu-user-static -y
echo 安装完成,按回车键后退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=amd64
libPath=/usr/lib/x86_64-linux-gnu/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=arm64
libPath=/usr/lib/aarch64-linux-gnu
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=armhf
libPath=/usr/lib/arm-linux-gnueabihf/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=i386
libPath=/usr/lib/i386-linux-gnu/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=mips64el
libPath=/usr/lib/mips64el-linux-gnuabi64
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=ppc64el
libPath=/usr/lib/powerpc64le-linux-gnu/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=amd64
libPath=/usr/lib/x86_64-linux-gnu/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=arm64
libPath=/usr/lib/aarch64-linux-gnu
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=armhf
libPath=/usr/lib/arm-linux-gnueabihf/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=i386
libPath=/usr/lib/i386-linux-gnu/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=mips64el
libPath=/usr/lib/mips64el-linux-gnuabi64/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=ppc64el
libPath=/usr/lib/powerpc64le-linux-gnu/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=riscv64
libPath=/usr/lib/riscv64-linux-gnu/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,13 @@
#!/bin/bash
arch=s390x
libPath=/usr/lib/s390x-linux-gnu/
package=$arch-runtime-for-qemu
if [[ ! -d $libPath ]]; then
echo "未安装 $arch 运行库,按回车键退出"
read
exit 1
fi
sudo apt purge $package -y
echo 卸载完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=riscv64
libPath=/usr/lib/riscv64-linux-gnu/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,20 @@
#!/bin/bash
arch=s390x
libPath=/usr/lib/s390x-linux-gnu/
version=1.0.0
url="https://code.gitlink.org.cn/gfdgd_xi/runtime-for-qemu/raw/branch/master/$arch-runtime-for-qemu_${version}_all.deb"
fileName=`basename $url`
if [[ -d $libPath ]]; then
echo "已安装 $arch 运行库,按回车键退出"
read
exit 1
fi
if [[ -f /tmp/$fileName ]]; then
rm "/tmp/$fileName"
fi
aria2c -x 16 -s 16 -c $url -d /tmp -o $fileName
sudo apt update
sudo dpkg -i /tmp/$fileName
echo 安装完成,按回车键退出
read

View File

@ -0,0 +1,11 @@
#!/bin/bash
# 判断是否有安装 Qemu User
which qemu-i386 > /dev/null
if [[ ! $? ]]; then
echo 您未安装 Qemu User按回车键后退出
read
exit 1
fi
sudo apt purge qemu-user -y
echo 安装完成,按回车键后退出
read

Binary file not shown.