修复打包,未将资源打包进去

This commit is contained in:
xaoyaoo 2024-01-04 15:15:14 +08:00
parent b75bf4b6ed
commit fc256aa0a0
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ jobs:
- name: Build exe file
run: |
python tests/build_exe.py
cat dist/pywxdump.spec
- name: Build Executable
run: |

View File

@ -107,7 +107,7 @@ if package_path:
for root, dirs, files in os.walk(os.path.join(root_path,"ui")):
for file in files:
file_path = os.path.join(root, file)
datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(file_path.replace(package_path, ""))}' )''')
datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(file_path.replace(package_path, "")[1:])}' )''')
datas_741258 = ",\n".join(datas_741258)
print(datas_741258)
# 生成 spec 文件