mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-13 10:32:03 +08:00
base64
This commit is contained in:
@@ -2,17 +2,17 @@
|
|||||||
# 使用系统默认的 python3 运行
|
# 使用系统默认的 python3 运行
|
||||||
###########################################################################################
|
###########################################################################################
|
||||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||||
# 版本:2.1.0
|
# 版本:2.4.0
|
||||||
# 更新时间:2022年08月25日
|
# 更新时间:2022年10月25日
|
||||||
# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
|
# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
|
||||||
# 基于 Python3 构建
|
# 基于 Python3 构建
|
||||||
###########################################################################################
|
###########################################################################################
|
||||||
#################
|
#################
|
||||||
# 引入所需的库
|
# 引入所需的库
|
||||||
#################
|
#################
|
||||||
from fileinput import filename
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import base64
|
||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
import req as requests
|
import req as requests
|
||||||
@@ -80,10 +80,10 @@ class ProgramRunStatusUpload():
|
|||||||
try:
|
try:
|
||||||
#if ProgramRunStatusUpload.sha1Value == "":
|
#if ProgramRunStatusUpload.sha1Value == "":
|
||||||
#ProgramRunStatusUpload.sha1Value = ProgramRunStatusUpload.GetSHA1(e2.currentText())
|
#ProgramRunStatusUpload.sha1Value = ProgramRunStatusUpload.GetSHA1(e2.currentText())
|
||||||
QtWidgets.QMessageBox.information(None, QtCore.QCoreApplication.translate("U", "提示"), json.loads(requests.post("http://120.25.153.144:30250/bash", {
|
QtWidgets.QMessageBox.information(None, QtCore.QCoreApplication.translate("U", "提示"), requests.post(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0OjMwMjUwL2Jhc2g=").decode("utf-8"), {
|
||||||
"BashName": ProgramRunStatusUpload.sha1Value,
|
"BashName": ProgramRunStatusUpload.sha1Value,
|
||||||
"Fen": ProgramRunStatusUpload.fen.currentIndex()
|
"Fen": ProgramRunStatusUpload.fen.currentIndex()
|
||||||
}).text)["Error"])
|
}).json()["Error"])
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
QtWidgets.QMessageBox.critical(None, QtCore.QCoreApplication.translate("U", "错误"), QtCore.QCoreApplication.translate("U", "数据上传失败!"))
|
QtWidgets.QMessageBox.critical(None, QtCore.QCoreApplication.translate("U", "错误"), QtCore.QCoreApplication.translate("U", "数据上传失败!"))
|
||||||
@@ -105,7 +105,8 @@ class ProgramRunStatusShow():
|
|||||||
fileName = i[1]
|
fileName = i[1]
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
fenlists = requests.get(f"http://120.25.153.144/spark-deepin-wine-runner/bashapp/{fileName}/all.json").json()
|
#fenlists = requests.get(f"http://120.25.153.144/spark-deepin-wine-runner/bashapp/{fileName}/all.json").json()
|
||||||
|
fenlists = requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9iYXNoYXBwLw==").decode("utf-8") + fileName + base64.b64decode("L2FsbC5qc29u").decode("utf-8")).json()
|
||||||
#r = requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9hcHAv").decode("utf-8") + sha + base64.b64decode("L3RpdGxlLnR4dA==").decode("utf-8"))
|
#r = requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9hcHAv").decode("utf-8") + sha + base64.b64decode("L3RpdGxlLnR4dA==").decode("utf-8"))
|
||||||
#r.encoding = "utf-8"
|
#r.encoding = "utf-8"
|
||||||
#title = r.text
|
#title = r.text
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
import os
|
|
||||||
for i in os.listdir():
|
|
||||||
with open(i, "r") as file:
|
|
||||||
things = file.read().replace("sys.exit(int(ConfigLanguareRunner.programEnv[9][1]))", "sys.exit(int(ConfigLanguareRunner.programEnv[9][1]))")
|
|
||||||
with open(i, "w") as file:
|
|
||||||
file.write(things)
|
|
||||||
@@ -1852,10 +1852,13 @@ updateThingsString = '''※1、新增 VB Runtime 组件安装工具
|
|||||||
※5、修复右键无法找到 Wine 运行器打开方式的问题
|
※5、修复右键无法找到 Wine 运行器打开方式的问题
|
||||||
※6、修复了容器自动配置脚本 GUI 解析器无法指定 Wine、容器以及位数的功能
|
※6、修复了容器自动配置脚本 GUI 解析器无法指定 Wine、容器以及位数的功能
|
||||||
※7、容器自动配置脚本支持评分功能
|
※7、容器自动配置脚本支持评分功能
|
||||||
|
※8、支持添加自定义安装的 Wine
|
||||||
|
※9、打包器打包的 arm 包支持同时支持 UOS 的 box86 和 exagear
|
||||||
|
※10、提供了 Python 的自动配置脚本 API
|
||||||
'''
|
'''
|
||||||
for i in information["Thank"]:
|
for i in information["Thank"]:
|
||||||
thankText += f"{i}\n"
|
thankText += f"{i}\n"
|
||||||
updateTime = "2022年10月24日"
|
updateTime = "2022年10月25日"
|
||||||
about = f'''<h1>关于</h1>
|
about = f'''<h1>关于</h1>
|
||||||
<p>一个能让Linux用户更加方便运行Windows应用的程序,内置了对wine图形化的支持和各种Wine工具和自制Wine程序打包器、运行库安装工具等等</p>
|
<p>一个能让Linux用户更加方便运行Windows应用的程序,内置了对wine图形化的支持和各种Wine工具和自制Wine程序打包器、运行库安装工具等等</p>
|
||||||
<p>同时也内置了基于VirtualBox制作的小白Windows虚拟机安装工具,可以做到只需要用户下载系统镜像并点击安装即可,无需顾及虚拟机安装、创建、虚拟机的分区等等</p>
|
<p>同时也内置了基于VirtualBox制作的小白Windows虚拟机安装工具,可以做到只需要用户下载系统镜像并点击安装即可,无需顾及虚拟机安装、创建、虚拟机的分区等等</p>
|
||||||
|
|||||||
@@ -114,8 +114,9 @@ def InstallOtherWine():
|
|||||||
name = os.path.basename(os.path.dirname(os.path.dirname(path[0])))
|
name = os.path.basename(os.path.dirname(os.path.dirname(path[0])))
|
||||||
if name == "" or name == None:
|
if name == "" or name == None:
|
||||||
name = f"useradd-wine-{random.randint(0, 99999)}"
|
name = f"useradd-wine-{random.randint(0, 99999)}"
|
||||||
binPath = os.path.dirname(os.path.dirname(path[0]))
|
#binPath = os.path.dirname(os.path.dirname(path[0]))
|
||||||
if os.system(f"ln -s '{binPath}' '{programPath}/{name}'") != 0:
|
os.makedirs(f"{programPath}/{name}/bin")
|
||||||
|
if os.system(f"ln -s '{path[0]}' '{programPath}/{name}/bin/wine'") != 0:
|
||||||
QtWidgets.QMessageBox.critical(window, "新建wine映射失败")
|
QtWidgets.QMessageBox.critical(window, "新建wine映射失败")
|
||||||
# C++ 版注释:不直接用 readwrite 是因为不能覆盖写入
|
# C++ 版注释:不直接用 readwrite 是因为不能覆盖写入
|
||||||
file = open(f"{programPath}/winelist.json", "w")
|
file = open(f"{programPath}/winelist.json", "w")
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
/media/gfdgd_xi/bebdaa29-d8c3-4b34-9fa8-5c31a779bb6a/wine6.0/usr/local
|
|
||||||
Reference in New Issue
Block a user