mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 01:28:28 +08:00
termux默认也使用标签页页面
Some checks failed
Auto Building Wine Runner(rpm) / Explore-GitHub-Actions (push) Has been cancelled
Auto Building Wine Runner(deb) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(arm64) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(amd64) / Explore-GitHub-Actions (push) Has been cancelled
Some checks failed
Auto Building Wine Runner(rpm) / Explore-GitHub-Actions (push) Has been cancelled
Auto Building Wine Runner(deb) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(arm64) / Explore-GitHub-Actions (push) Has been cancelled
Building Wine Runner Off-line Pages(amd64) / Explore-GitHub-Actions (push) Has been cancelled
This commit is contained in:
parent
bc5aca0fd7
commit
96319869b6
2
Makefile
2
Makefile
@ -206,7 +206,7 @@ package-termux-deb:
|
||||
sudo cp -rv deb-termux/usr/share/applications /tmp/spark-deepin-wine-runner-builder/data/data/com.termux/files/usr/share/applications
|
||||
# 加入 termux loader
|
||||
sudo cp -rv mainwindow-termux-loader.sh /tmp/spark-deepin-wine-runner-builder/data/data/com.termux/files/usr/opt/apps/deepin-wine-runner/deepin-wine-runner
|
||||
sudo cp -rv mainwindow.py /tmp/spark-deepin-wine-runner-builder/data/data/com.termux/files/usr/opt/apps/deepin-wine-runner/mainwindow.py
|
||||
sudo cp -rv main.py /tmp/spark-deepin-wine-runner-builder/data/data/com.termux/files/usr/opt/apps/deepin-wine-runner/mainwindow.py
|
||||
sudo bash builddeb/ChangeDebVersion.sh
|
||||
dpkg-deb -Z xz -z 9 -b /tmp/spark-deepin-wine-runner-builder spark-deepin-wine-runner-termux.deb
|
||||
make remove-copy-files -j$(nproc)
|
||||
|
@ -20,14 +20,10 @@ moduleNameList = {
|
||||
"Name": "虚拟机管理工具",
|
||||
"RepeatShow": True
|
||||
},
|
||||
"VM.show-vm": {
|
||||
"Name": "虚拟机连接工具(VNC)",
|
||||
"RepeatShow": True
|
||||
},
|
||||
"wine.installwine": {
|
||||
"Name": "Wine 安装工具",
|
||||
"RepeatShow": True
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
class RunnerWindow:
|
||||
|
14
main.py
14
main.py
@ -5,10 +5,11 @@ import PyQt5.QtGui as QtGui
|
||||
import PyQt5.QtCore as QtCore
|
||||
|
||||
import os
|
||||
import json
|
||||
import sys
|
||||
import WindowModule
|
||||
import json
|
||||
import welcome
|
||||
import subprocess
|
||||
import WindowModule
|
||||
|
||||
# 读取文本文档
|
||||
def readtxt(path):
|
||||
@ -18,7 +19,6 @@ def readtxt(path):
|
||||
return str # 返回结果
|
||||
|
||||
def ProgramVersion():
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(f"{programPath}/information.json"))
|
||||
return information["Version"]
|
||||
|
||||
@ -167,8 +167,8 @@ class LeftWidget(QtWidgets.QWidget):
|
||||
self.mainLayout.addWidget(self.list1)
|
||||
|
||||
# 删_页面按钮
|
||||
#self.btn4 = QtWidgets.QPushButton("删除本页面")
|
||||
#self.mainLayout.addWidget(self.btn4)
|
||||
self.archLabel = QtWidgets.QLabel("系统架构:{}".format(subprocess.getoutput("dpkg --print-architecture")))
|
||||
self.mainLayout.addWidget(self.archLabel)
|
||||
|
||||
# 列表项目组件
|
||||
class ItemWidget(QtWidgets.QListWidgetItem):
|
||||
@ -214,10 +214,14 @@ class RightWidget(QtWidgets.QStackedWidget):
|
||||
def get_home():
|
||||
return os.path.expanduser('~')
|
||||
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
iconPath = "{}/deepin-wine-runner.svg".format(programPath)
|
||||
|
||||
# 运行程序
|
||||
if __name__ == "__main__":
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
mainWindow = Window()
|
||||
mainWindow.setWindowIcon(QtGui.QIcon(iconPath))
|
||||
mainWindow.show()
|
||||
mainWindow.resize(int(mainWindow.geometry().width() * 1.2), int(mainWindow.geometry().height() * 1.2))
|
||||
sys.exit(app.exec())
|
@ -21,4 +21,4 @@ if [[ $DISPLAY == "" ]] && [[ $WAYLAND_DISPLAY == "" ]] && [[ -f /data/data/com.
|
||||
fi
|
||||
$CURRENT_DIR/VM/novnc/utils/novnc_proxy --vnc localhost:5905 $noVNCOption &
|
||||
fi
|
||||
python3 $CURRENT_DIR/mainwindow.py
|
||||
python3 $CURRENT_DIR/main.py
|
||||
|
Loading…
Reference in New Issue
Block a user