Skip to content

Commit

Permalink
修复无法打开设置页面的bug,新增打包readme.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
molihuan committed Nov 6, 2023
1 parent f7f1531 commit 8c9d9e7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ __pycache__/
!/script/buildqrc.py
!/script/uiConnectResources.py
!/script/appDetails.py
!/script/readme.txt
/test/
/config.json
4 changes: 2 additions & 2 deletions modules/settings/AboutPage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from PySide6.QtWidgets import QWidget, QTextBrowser, QHBoxLayout

from modules import BaseService
from modules import SysUtils
from modules.home.base import BaseService
from modules.utils.SysUtils import SysUtils


class AboutPage(QWidget, BaseService):
Expand Down
2 changes: 1 addition & 1 deletion modules/settings/BaseSettingsPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class BaseSettingsPage(BaseServiceWidget):
def __init__(self, mContext):
super().__init__(mContext=mContext)
super(QWidget).__init__()
# super(QWidget).__init__()

# QWidget.__init__(self)
# BaseService.__init__(self, mContext=mContext)
Expand Down
6 changes: 5 additions & 1 deletion script/packagescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def chooseType(sysType, inType):
pass
else:
print("无效的选择")

#复制readme.txt
def copyReadme(source_path, target_path):
# 使用shutil.copy2()方法进行复制
shutil.copy2(source_path, target_path)

# 打包脚本
if __name__ == "__main__":
Expand All @@ -167,3 +170,4 @@ def chooseType(sysType, inType):
if inType == PkgType.NON.value:
exit()
chooseType(sysType, inType)
copyReadme("./readme.txt",outputDir)
8 changes: 8 additions & 0 deletions script/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1、此软件存放的目录不能有空格或特殊字符
2、读取缓存视频的目录不能有空格或特殊字符

Linux版本:使用ubuntu-22.04.2-amd64打包,如果你的系统版本低于此版本则不保证可用,有问题请下载源码自行打包

Mac版本:使用macOS ventura 13.4.1版本打包,如果你的系统版本低于此版本则不保证可用,有问题请下载源码自行打包

Windows:使用Win 10打包,如果你的系统版本低于此版本则不保证可用,有问题请下载源码自行打包

0 comments on commit 8c9d9e7

Please sign in to comment.