这是使用PyQT5作为UI的首次提交,将后端和UI合并到1个工程中,统一使用了Python,没有使用JS和HTML
This commit is contained in:
72
UI/dtmgtUI.spec
Normal file
72
UI/dtmgtUI.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
block_cipher = None
|
||||
|
||||
# 获取 UI 目录的绝对路径
|
||||
ui_dir = os.path.abspath(SPECPATH)
|
||||
|
||||
a = Analysis(
|
||||
['dtmgtUI.py'],
|
||||
pathex=[ui_dir],
|
||||
binaries=[],
|
||||
datas=[
|
||||
('styles/*.qss', 'styles'), # 包含样式文件
|
||||
('models/dtmgtDb.db', 'models'), # 包含数据库文件
|
||||
],
|
||||
hiddenimports=[
|
||||
'PyQt5',
|
||||
'PyQt5.QtCore',
|
||||
'PyQt5.QtGui',
|
||||
'PyQt5.QtWidgets',
|
||||
'views',
|
||||
'views.login_dialog',
|
||||
'views.main_window',
|
||||
'views.test_monitor_view',
|
||||
'views.test_plan_view',
|
||||
'views.test_result_view',
|
||||
'views.system_settings_view',
|
||||
'views.dut_form_dialog',
|
||||
'views.dut_selection_dialog',
|
||||
'ui_utils',
|
||||
'ui_utils.user_session',
|
||||
'ui_utils.websocket_client',
|
||||
'models',
|
||||
'models.dut_model',
|
||||
'models.system_model',
|
||||
'models.test_model',
|
||||
'controllers',
|
||||
'controllers.main_controller',
|
||||
'styles',
|
||||
],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False,
|
||||
)
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
[],
|
||||
name='dtmgtUI',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=True,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
||||
Reference in New Issue
Block a user