Skip to content

Commit e71d904

Browse files
committed
* 解决如果为空,打包失败的bug
1 parent ff1e4a2 commit e71d904

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#### JadeV2.0.6 - 2023-07-19
44
* 新增exclude_files参数,去除打包时不必要的动态库
5+
* 解决如果为空,打包失败的bug
56
---
67

78

jade/jade_packing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ def writeSpec(args):
414414
exclude_files_str = exclude_files_str + "a.binaries = a.binaries - TOC([\n"
415415
for exclude_file in exclude_files_list:
416416
exclude_files_str = exclude_files_str + "\t('{}',None, None),\n".format(exclude_file)
417-
exclude_files_str = exclude_files_str + "])\n"
417+
if len(exclude_files_list) > 0:
418+
exclude_files_str = exclude_files_str + "])\n"
418419
except:
419420
pass
420421
if getOperationSystem() == "Darwin":

0 commit comments

Comments
 (0)