deep-wine-runner/InstallRuntime/amd64.sh
2023-05-06 22:47:20 +08:00

22 lines
565 B
Bash
Executable File

#!/bin/bash
arch=amd64
libPath=/usr/lib/x86_64-linux-gnu/
version=1.0.1
url="https://jihulab.com/gfdgd-xi/qemu-runtime/-/raw/main/$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
sudo apt install qemu-user qemu-user-static binfmt-support -y
echo 安装完成,按回车键退出
read