mirror of
https://github.com/hyb-oyqq/FRAISEMOE-Addons-Installer-NEXT.git
synced 2026-01-06 17:10:14 +00:00
refactor(extraction_thread): 优化压缩包内容分析的日志输出格式
将文件类型判断逻辑提取为变量,提高代码可读性。
This commit is contained in:
@@ -6,6 +6,10 @@ from PyInstaller.utils.hooks import collect_submodules, collect_data_files
|
||||
|
||||
block_cipher = None
|
||||
|
||||
# 获取spec文件所在目录的绝对路径
|
||||
SPEC_ROOT = os.path.dirname(os.path.abspath(SPEC))
|
||||
ICON_PATH = os.path.join(SPEC_ROOT, 'assets', 'images', 'ICO', 'icon.ico')
|
||||
|
||||
# 收集所有子模块
|
||||
hiddenimports = []
|
||||
hiddenimports += collect_submodules('workers')
|
||||
@@ -67,5 +71,5 @@ exe = EXE(
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon='assets/images/ICO/icon.ico',
|
||||
icon=ICON_PATH,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user