Skip to content

Commit 25a7d0b

Browse files
committed
* 压缩lib包时,需要判断是否有可执行文件
1 parent 8051625 commit 25a7d0b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

jade/jade_packing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,12 +965,13 @@ def write_version(package_name):
965965
with open("{}/version.py".format(package_name),"wb") as f:
966966
f.write("full_version = '{}'\n".format(get_app_version()).encode("utf-8"))
967967

968-
def zip_lib_package(args):
968+
def zip_lib_package(args,is_exec=True):
969969
CreateSavePath("Output")
970970
install_path = os.path.join(os.getcwd(),
971971
"releases/{}/{}".format(args.name + "V" + args.app_version, getOperationSystem()))
972972
zip_file(os.path.join(install_path, args.lib_path), os.path.join("Output/{}.zip".format(args.lib_path)))
973-
shutil.copy(os.path.join(install_path,args.app_name),os.path.join("Output/{}".format(args.app_name)))
973+
if is_exec:
974+
shutil.copy(os.path.join(install_path,args.app_name),os.path.join("Output/{}".format(args.app_name)))
974975
if __name__ == '__main__':
975976
import argparse
976977

0 commit comments

Comments
 (0)