mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-26 16:08:05 +08:00
在安装应用时无需手动确认
This commit is contained in:
parent
ff41344e97
commit
e0b2aca8ef
@ -40,7 +40,7 @@ def InstallSparkWine(wine):
|
|||||||
|
|
||||||
def InstallWineWithYay(wine):
|
def InstallWineWithYay(wine):
|
||||||
if os.system("which yay > /dev/null"):
|
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}\"")
|
os.system(f"yay -S \"{wine}\"")
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
@ -9,7 +9,7 @@ fi
|
|||||||
# 判断是不是 Arch Linux
|
# 判断是不是 Arch Linux
|
||||||
if [[ -f /etc/arch-release ]]; then
|
if [[ -f /etc/arch-release ]]; then
|
||||||
sudo pacman -Syu
|
sudo pacman -Syu
|
||||||
sudo pacman -S qemu-user qemu-user-static
|
sudo pacman -S qemu-user qemu-user-static --noconfirm
|
||||||
echo 安装完成,按回车键后退出
|
echo 安装完成,按回车键后退出
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# 如果是 Arch Linux
|
# 如果是 Arch Linux
|
||||||
if [[-f /etc/arch-release ]]; then
|
if [[-f /etc/arch-release ]]; then
|
||||||
sudo pacman -Syu
|
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
|
exit
|
||||||
fi
|
fi
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
@ -1313,7 +1313,7 @@ python3 "{programPath}/updatekiller.py"
|
|||||||
echo 下载安装包
|
echo 下载安装包
|
||||||
wget -P /tmp/spark-deepin-wine-runner/update {UpdateWindow.data["Url-pkg"][0]}
|
wget -P /tmp/spark-deepin-wine-runner/update {UpdateWindow.data["Url-pkg"][0]}
|
||||||
echo 安装安装包
|
echo 安装安装包
|
||||||
pacman -U /tmp/spark-deepin-wine-runner/update/*
|
pacman -U /tmp/spark-deepin-wine-runner/update/* --noconfirm
|
||||||
notify-send -i "{iconPath}" "更新完毕!"
|
notify-send -i "{iconPath}" "更新完毕!"
|
||||||
zenity --info --text=\"更新完毕!\" --ellipsize
|
zenity --info --text=\"更新完毕!\" --ellipsize
|
||||||
""")
|
""")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user