mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
修复一些问题
This commit is contained in:
parent
8dc9db1f59
commit
542668311d
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# 判断是否有安装 Qemu User
|
||||
which qemu-i386 > /dev/null
|
||||
if [[ !$? ]]; then
|
||||
if [[ $? == 0 ]]; then
|
||||
echo 您已安装过 Qemu User,按回车键后退出
|
||||
read
|
||||
exit 1
|
||||
@ -9,4 +9,4 @@ fi
|
||||
sudo apt update
|
||||
sudo apt install binfmt-support qemu-user qemu-user-static -y
|
||||
echo 安装完成,按回车键后退出
|
||||
read
|
||||
read
|
||||
|
4
Makefile
4
Makefile
@ -100,6 +100,10 @@ package:
|
||||
cp -rv Model 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 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
|
||||
cp -rv deb /tmp/spark-deepin-wine-runner-builder
|
||||
mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin
|
||||
|
@ -1,5 +1,5 @@
|
||||
Package: spark-deepin-wine-runner
|
||||
Version: 3.2.0
|
||||
Version: 3.2.0-2
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||
Homepage: https://gitee.com/gfdgd-xi-org/deep-wine-runner
|
||||
Architecture: all
|
||||
@ -9,7 +9,7 @@ Check: binaries
|
||||
Type: binary, udeb
|
||||
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
|
||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine
|
||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, qemu-user, binfmt-support, qemu-user-static
|
||||
Section: utils
|
||||
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
|
||||
|
35
deb/opt/apps/deepin-wine-runner/InstallBox86.sh
Executable file
35
deb/opt/apps/deepin-wine-runner/InstallBox86.sh
Executable 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
|
12
deb/opt/apps/deepin-wine-runner/InstallQemuUser.sh
Executable file
12
deb/opt/apps/deepin-wine-runner/InstallQemuUser.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/amd64.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/amd64.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/arm64.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/arm64.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/armhf.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/armhf.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/i386.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/i386.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/mips64el.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/mips64el.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/ppc64el.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/ppc64el.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/amd64.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/amd64.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/arm64.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/arm64.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/armhf.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/armhf.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/i386.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/i386.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/mips64el.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/mips64el.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/ppc64el.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/ppc64el.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/riscv64.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/riscv64.sh
Executable 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
|
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/s390x.sh
Executable file
13
deb/opt/apps/deepin-wine-runner/InstallRuntime/remove/s390x.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/riscv64.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/riscv64.sh
Executable 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
|
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/s390x.sh
Executable file
20
deb/opt/apps/deepin-wine-runner/InstallRuntime/s390x.sh
Executable 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
|
11
deb/opt/apps/deepin-wine-runner/RemoveQemuUser.sh
Executable file
11
deb/opt/apps/deepin-wine-runner/RemoveQemuUser.sh
Executable 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.
Binary file not shown.
Loading…
Reference in New Issue
Block a user