@@ -633,7 +633,7 @@ def build(args):
633633 lib_suffix = "so"
634634
635635 specify_files = str_to_list (args .specify_files )
636-
636+ remove_specify_files = str_to_list ( args . remove_specify_files )
637637 if len (specify_files ) > 0 :
638638 progressBar = ProgressBar (len (specify_files ))
639639 else :
@@ -647,18 +647,19 @@ def build(args):
647647 need_to_build_file_list = []
648648 for file_name in file_list :
649649 if len (specify_files ) > 0 :
650- if file_name in specify_files :
650+ if file_name in specify_files and file_name not in remove_specify_files :
651651 cmd_str = "{}easycython {}/{}" .format (scripts_path , "new_src" , file_name )
652652 result = subprocess .run (cmd_str , shell = True )
653653 progressBar .update ()
654654 need_to_build_file_list .append (file_name )
655655 else :
656656 pass
657657 else :
658- cmd_str = "{}easycython {}/{}" .format (scripts_path , "new_src" , file_name )
659- need_to_build_file_list .append (file_name )
660- subprocess .run (cmd_str , shell = True )
661- progressBar .update ()
658+ if file_name not in remove_specify_files :
659+ cmd_str = "{}easycython {}/{}" .format (scripts_path , "new_src" , file_name )
660+ need_to_build_file_list .append (file_name )
661+ subprocess .run (cmd_str , shell = True )
662+ progressBar .update ()
662663
663664 build_file_list = os .listdir ()
664665 build_success_file_list = []
@@ -1095,6 +1096,7 @@ def zip_package(args):
10951096 default = "False" ) ## 是否打包成AppImage
10961097 parser .add_argument ('--is_qt' , type = str , default = "False" ) ## 是否为Qt
10971098 parser .add_argument ("--specify_files" , type = str , default = "" )
1099+ parser .add_argument ("--remove_specify_files" , type = str , default = "" )
10981100 parser .add_argument ('--lib_path' , type = str , default = "conta_service_lib64" ) ## 是否lib包分开打包
10991101
11001102 args = parser .parse_args ()
0 commit comments