deep-wine-runner/deb/opt/apps/deepin-wine-runner/wine install

59 lines
2.4 KiB
Plaintext
Raw Normal View History

2021-07-27 15:05:19 +08:00
#!/usr/bin/env python3
# 使用系统默认的 python3 运行
###########################################################################################
# 作者gfdgd xi
2022-07-01 15:16:00 +08:00
# 版本1.4.1
# 更新时间2022年06月22日
2021-07-27 15:05:19 +08:00
# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
# 基于 Python3 的 tkinter 构建
###########################################################################################
#################
# 引入所需的库
#################
import os
###################
# 程序功能
###################
print("请保证你能有 root 权限以便安装")
print("如果有请按回车,否则按 [Ctrl+C] 退出", end=' ')
input()
os.system("sudo apt update")
print("请问是否要更新操作系统?[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt upgrade -y")
print("请问是否要安装原版 winewine64[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt install wine -y")
print("请问是否要安装 deepin-wine[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt install deepin-wine -y")
print("请问是否要安装 deepin-wine5需要添加星火应用商店的源[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
2022-07-01 15:16:00 +08:00
if os.path.exists("/etc/apt/sources.list.d/sparkstore.list"):
os.system("sudo apt install deepin-wine5 -y")
2021-07-27 15:05:19 +08:00
if not os.path.exists("/etc/apt/sources.list.d/sparkstore.list"):
2022-07-01 15:16:00 +08:00
os.system("sudo touch /etc/apt/sources.list.d/sparkstore.list")
os.system("echo 'deb [by-hash=force] https://d.store.deepinos.org.cn/ /' | sudo tee '/etc/apt/sources.list.d/sparkstore.list'")
2021-07-27 15:05:19 +08:00
os.system("sudo apt update")
os.system("sudo apt install deepin-wine5 -y")
2022-07-01 15:16:00 +08:00
if os.path.exists("/etc/apt/sources.list.d/sparkstore.list"):
2021-07-27 15:05:19 +08:00
os.system("sudo apt update")
print("请问是否要安装 deepin-wine5-stable[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt install deepin-wine5-stable -y")
print("请问是否要安装 deepin-wine6-stable[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt install deepin-wine6-stable -y")
2022-07-01 15:16:00 +08:00
print("请问是否要安装 spark-wine7-devel[Y/N]", end=' ')
choose = input().upper()
if not choose == "N":
os.system("sudo apt install spark-wine7-devel -y")
2021-07-27 15:05:19 +08:00
print("全部完成!")