mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
修复 wine install 安装星火应用商店源不会获取签名的问题
This commit is contained in:
parent
485ac326bd
commit
51a5f20832
@ -5,6 +5,8 @@ Homepage: https://gitee.com/gfdgd-xi/deep-wine-runner
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: python3, python3-tk, python3-pip, python3-pil, python3-pil.imagetk, python3-pyquery, deepin-terminal, aria2, curl
|
Depends: python3, python3-tk, python3-pip, python3-pil, python3-pil.imagetk, python3-pyquery, deepin-terminal, aria2, curl
|
||||||
|
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer
|
||||||
|
Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer
|
||||||
Description: gfdgd xi 制作的 wine 运行器
|
Description: gfdgd xi 制作的 wine 运行器
|
||||||
更新内容:
|
更新内容:
|
||||||
※1、添加并翻新了 deepin-wine5 打包器,改为 wine 打包器,支持常见 wine 的打包
|
※1、添加并翻新了 deepin-wine5 打包器,改为 wine 打包器,支持常见 wine 的打包
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布
|
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布
|
||||||
# 版本:1.5.2
|
# 版本:1.5.3
|
||||||
# 感谢:感谢 deepin-wine 团队,提供了 deepin-wine 给大家使用,让我能做这个程序
|
# 感谢:感谢 deepin-wine 团队,提供了 deepin-wine 给大家使用,让我能做这个程序
|
||||||
# 基于 Python3 的 tkinter 构建
|
# 基于 Python3 的 tkinter 构建
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#################
|
#################
|
||||||
# 引入所需的库
|
# 引入所需的库
|
||||||
#################
|
#################
|
||||||
from cProfile import run
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
@ -366,7 +365,7 @@ fi
|
|||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
messagebox.showerror(title="错误", message="程序出现错误,错误信息:\n{}".format(traceback.format_exc()))
|
messagebox.showerror(title="错误", message="程序出现错误,错误信息:\n{}".format(traceback.format_exc()))
|
||||||
label13_text_change("deb 包构建出现错误:{}".format(repr(e)))
|
label13_text_change("deb 包构建出现错误")
|
||||||
chang_textbox1_things(traceback.format_exc())
|
chang_textbox1_things(traceback.format_exc())
|
||||||
disabled_or_NORMAL_all(True)
|
disabled_or_NORMAL_all(True)
|
||||||
|
|
||||||
|
68
wine install
Executable file
68
wine install
Executable file
@ -0,0 +1,68 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# 使用系统默认的 python3 运行
|
||||||
|
###########################################################################################
|
||||||
|
# 作者:gfdgd xi
|
||||||
|
# 版本:1.5.3
|
||||||
|
# 更新时间:2022年07月08日
|
||||||
|
# 感谢:感谢 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("请问是否要安装原版 wine(wine64)?[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":
|
||||||
|
if os.path.exists("/etc/apt/sources.list.d/sparkstore.list"):
|
||||||
|
os.system("sudo apt install deepin-wine5 -y")
|
||||||
|
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'")
|
||||||
|
os.system("mkdir -p /tmp/spark-store-install")
|
||||||
|
os.system("wget -O /tmp/spark-store-install/spark-store.asc https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc")
|
||||||
|
os.system("cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg")
|
||||||
|
os.system("apt update -o Dir::Etc::sourcelist=\"sources.list.d/sparkstore.list\" -o Dir::Etc::sourceparts=\"-\" -o APT::Get::List-Cleanup=\"0\"")
|
||||||
|
os.system("sudo apt update")
|
||||||
|
os.system("sudo apt install deepin-wine5 -y")
|
||||||
|
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")
|
||||||
|
print("请问是否要安装 spark-wine7-devel?(需要添加星火应用商店的源)[Y/N]", end=' ')
|
||||||
|
choose = input().upper()
|
||||||
|
if not choose == "N":
|
||||||
|
if os.path.exists("/etc/apt/sources.list.d/sparkstore.list"):
|
||||||
|
os.system("sudo apt install spark-wine7-devel -y")
|
||||||
|
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'")
|
||||||
|
os.system("mkdir -p /tmp/spark-store-install")
|
||||||
|
os.system("wget -O /tmp/spark-store-install/spark-store.asc https://d.store.deepinos.org.cn/dcs-repo.gpg-key.asc")
|
||||||
|
os.system("cp -f /tmp/spark-store-install/spark-store.asc.gpg /etc/apt/trusted.gpg.d/spark-store.gpg")
|
||||||
|
os.system("apt update -o Dir::Etc::sourcelist=\"sources.list.d/sparkstore.list\" -o Dir::Etc::sourceparts=\"-\" -o APT::Get::List-Cleanup=\"0\"")
|
||||||
|
os.system("sudo apt update")
|
||||||
|
os.system("sudo apt install spark-wine7-devel -y")
|
||||||
|
print("全部完成!")
|
Loading…
Reference in New Issue
Block a user