mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
新增安装运行库功能
This commit is contained in:
20
InstallRuntime/i386.sh
Normal file
20
InstallRuntime/i386.sh
Normal 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
|
||||
Reference in New Issue
Block a user