File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )))
974975if __name__ == '__main__' :
975976 import argparse
976977
You can’t perform that action at this time.
0 commit comments