在安装应用时无需手动确认

This commit is contained in:
gfdgd xi 2024-02-01 18:52:19 +08:00
parent ff41344e97
commit e0b2aca8ef
4 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ def InstallSparkWine(wine):
def InstallWineWithYay(wine):
if os.system("which yay > /dev/null"):
os.system("sudo pacman -S yay")
os.system("sudo pacman -S yay --noconfirm")
os.system(f"yay -S \"{wine}\"")
###################

View File

@ -9,7 +9,7 @@ fi
# 判断是不是 Arch Linux
if [[ -f /etc/arch-release ]]; then
sudo pacman -Syu
sudo pacman -S qemu-user qemu-user-static
sudo pacman -S qemu-user qemu-user-static --noconfirm
echo 安装完成,按回车键后退出
read
fi

View File

@ -2,7 +2,7 @@
# 如果是 Arch Linux
if [[-f /etc/arch-release ]]; then
sudo pacman -Syu
sudo pacman -S qemu-user qemu-user-static qemu-full
sudo pacman -S qemu-user qemu-user-static qemu-full --noconfirm
exit
fi
sudo apt update

View File

@ -1313,7 +1313,7 @@ python3 "{programPath}/updatekiller.py"
echo 下载安装包
wget -P /tmp/spark-deepin-wine-runner/update {UpdateWindow.data["Url-pkg"][0]}
echo 安装安装包
pacman -U /tmp/spark-deepin-wine-runner/update/*
pacman -U /tmp/spark-deepin-wine-runner/update/* --noconfirm
notify-send -i "{iconPath}" "更新完毕!"
zenity --info --text=\"更新完毕!\" --ellipsize
""")