diff --git a/InstallRuntime/amd64.sh b/InstallRuntime/amd64.sh new file mode 100644 index 0000000..19fa97e --- /dev/null +++ b/InstallRuntime/amd64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/arm64.sh b/InstallRuntime/arm64.sh new file mode 100644 index 0000000..df208d7 --- /dev/null +++ b/InstallRuntime/arm64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/armhf.sh b/InstallRuntime/armhf.sh new file mode 100644 index 0000000..015e39b --- /dev/null +++ b/InstallRuntime/armhf.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/i386.sh b/InstallRuntime/i386.sh new file mode 100644 index 0000000..4b22eb2 --- /dev/null +++ b/InstallRuntime/i386.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/mips64el.sh b/InstallRuntime/mips64el.sh new file mode 100644 index 0000000..56c6eae --- /dev/null +++ b/InstallRuntime/mips64el.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/ppc64el.sh b/InstallRuntime/ppc64el.sh new file mode 100644 index 0000000..78abc01 --- /dev/null +++ b/InstallRuntime/ppc64el.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/amd64.sh b/InstallRuntime/remove/amd64.sh new file mode 100644 index 0000000..2f0fc0f --- /dev/null +++ b/InstallRuntime/remove/amd64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/arm64.sh b/InstallRuntime/remove/arm64.sh new file mode 100644 index 0000000..a50777d --- /dev/null +++ b/InstallRuntime/remove/arm64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/armhf.sh b/InstallRuntime/remove/armhf.sh new file mode 100644 index 0000000..4757aa2 --- /dev/null +++ b/InstallRuntime/remove/armhf.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/i386.sh b/InstallRuntime/remove/i386.sh new file mode 100644 index 0000000..7a93623 --- /dev/null +++ b/InstallRuntime/remove/i386.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/mips64el.sh b/InstallRuntime/remove/mips64el.sh new file mode 100644 index 0000000..39cb2bc --- /dev/null +++ b/InstallRuntime/remove/mips64el.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/ppc64el.sh b/InstallRuntime/remove/ppc64el.sh new file mode 100644 index 0000000..d0e02e1 --- /dev/null +++ b/InstallRuntime/remove/ppc64el.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/riscv64.sh b/InstallRuntime/remove/riscv64.sh new file mode 100644 index 0000000..a7294b1 --- /dev/null +++ b/InstallRuntime/remove/riscv64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/remove/s390x.sh b/InstallRuntime/remove/s390x.sh new file mode 100644 index 0000000..c3b39ce --- /dev/null +++ b/InstallRuntime/remove/s390x.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/riscv64.sh b/InstallRuntime/riscv64.sh new file mode 100644 index 0000000..b153d30 --- /dev/null +++ b/InstallRuntime/riscv64.sh @@ -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 \ No newline at end of file diff --git a/InstallRuntime/s390x.sh b/InstallRuntime/s390x.sh new file mode 100644 index 0000000..ccdd1ce --- /dev/null +++ b/InstallRuntime/s390x.sh @@ -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 \ No newline at end of file