Browse Source

[env][dist] adjust dist sequence

Meco Man 1 year ago
parent
commit
77f31f8d8f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tools/mkdist.py

+ 4 - 4
tools/mkdist.py

@@ -243,10 +243,6 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, project_name, project_path):
     # delete testcases in Kconfig
     bsp_update_kconfig_testcases(dist_dir)
 
-    # make zip package
-    if project_path == None:
-        zip_dist(dist_dir, project_name)
-
     target_project_type = GetOption('target')
     if target_project_type:
         child = subprocess.Popen('scons --target={} --project-name="{}"'.format(target_project_type, project_name), cwd=dist_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
@@ -258,4 +254,8 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, project_name, project_path):
     else:
         print('suggest to use command scons --dist [--target=xxx] [--project-name="xxx"] [--project-path="xxx"]')
 
+    # make zip package
+    if project_path == None:
+        zip_dist(dist_dir, project_name)
+
     print('dist project successfully!')