@@ -630,6 +630,15 @@ def build(args):
630630 shutil .rmtree ("build" )
631631
632632
633+ save_path = CreateSavePath (os .path .join ("releases" , args .name + "V" + args .app_version ))
634+ if os .path .exists ("{}/{}" .format (getOperationSystem (), save_path )) is True :
635+ shutil .rmtree ("{}/{}" .format (getOperationSystem (), save_path ))
636+ save_bin_path = CreateSavePath (os .path .join (save_path , getOperationSystem ()))
637+ # copy_dir("config", save_bin_path)
638+ if args .lib_path :
639+ copy_dir (args .lib_path , save_bin_path )
640+
641+
633642def recursion_dir (file_list , path ):
634643 if os .path .isfile (path ):
635644 file_list .append (path )
@@ -943,14 +952,6 @@ def packAPP(args):
943952 if os .path .exists ("file_verison_info.txt" ):
944953 os .remove ("file_verison_info.txt" )
945954
946- save_path = CreateSavePath (os .path .join ("releases" , args .name + "V" + args .app_version ))
947- if os .path .exists ("{}/{}" .format (getOperationSystem (), save_path )) is True :
948- shutil .rmtree ("{}/{}" .format (getOperationSystem (), save_path ))
949- save_bin_path = CreateSavePath (os .path .join (save_path , getOperationSystem ()))
950- # copy_dir("config", save_bin_path)
951- if args .lib_path :
952- copy_dir (args .lib_path , save_bin_path )
953-
954955def get_app_version ():
955956 try :
956957 with open ("CONTRIBUTING.md" ,"rb" ) as f :
0 commit comments