deep-wine-runner/InstallQemuUser.sh
2024-01-31 21:21:12 +08:00

20 lines
495 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 判断是否有安装 Qemu User
which qemu-i386 > /dev/null
if [[ $? == 0 ]]; then
echo 您已安装过 Qemu User按回车键后退出
read
exit 1
fi
# 判断是不是 Arch Linux
if [[ -f /etc/arch-release ]]; then
sudo pacman -Syu
sudo pacman -S qemu-user qemu-user-static
echo 安装完成,按回车键后退出
read
fi
sudo apt update
sudo apt install binfmt-support qemu-user qemu-user-static -y
echo 安装完成,按回车键后退出
read