优化程序

This commit is contained in:
hero920103 committed 2026-10-12 14:57:46 +08:00
1 parent 68e8eb91a7
commit 6df29c9254
27 files changed
+1974 -203

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@
from PyInstaller.utils.hooks import collect_all
datas = [('assets', 'assets'), ('logo.png', '.'), ('logo.ico', '.')]
binaries = []
# update_helper.exe 打包进 onefile,运行时解压到 _MEIPASS
binaries = [('update_helper.exe', '.')] if __import__('os').path.exists('update_helper.exe') else []
hiddenimports = ['qtawesome']
tmp_ret = collect_all('qtawesome')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]