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