修复打包,未将资源打包进去
This commit is contained in:
parent
b75bf4b6ed
commit
fc256aa0a0
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -42,6 +42,7 @@ jobs:
|
||||
- name: Build exe file
|
||||
run: |
|
||||
python tests/build_exe.py
|
||||
cat dist/pywxdump.spec
|
||||
|
||||
- name: Build Executable
|
||||
run: |
|
||||
|
@ -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 文件
|
||||
|
Loading…
Reference in New Issue
Block a user