2023-03-19 13:00:40 +08:00
|
|
|
#!/bin/bash
|
|
|
|
arch=ppc64el
|
|
|
|
libPath=/usr/lib/powerpc64le-linux-gnu/
|
|
|
|
version=1.0.0
|
2024-04-10 22:20:49 +08:00
|
|
|
url="https://sourceforge.net/projects/deep-wine-runner-wine-download/files/${version}-${arch}-runtime-for-qemu/${arch}-runtime-for-qemu_${version}_all.deb/download"
|
2023-03-19 13:00:40 +08:00
|
|
|
fileName=`basename $url`
|
2024-04-10 22:20:49 +08:00
|
|
|
fileName=`basename $filename`
|
2023-03-19 13:00:40 +08:00
|
|
|
|
|
|
|
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
|
2023-04-09 21:12:36 +08:00
|
|
|
sudo apt install qemu-user qemu-user-static binfmt-support -y
|
2023-03-19 13:00:40 +08:00
|
|
|
sudo dpkg -i /tmp/$fileName
|
|
|
|
echo 安装完成,按回车键退出
|
2023-04-09 21:12:36 +08:00
|
|
|
read
|