diff --git a/scripts/project_build.py b/scripts/project_build.py index 776c665..4755635 100644 --- a/scripts/project_build.py +++ b/scripts/project_build.py @@ -45,7 +45,7 @@ class ProjectBuild(Task): pass def init(self): - file_name = f"{self.context.get_app_name()}_{self.context.package_name}_{self.context.version_display_name}({self.context.version_code})_{self.context.local_repo_branch}({self.context.local_repo_commit[:5]})_{TimeUtils.get_current_time_str()}" + file_name = f"{self.context.get_app_name()}_{self.context.package_name}_{self.context.version_display_name}-{self.context.version_code}_{self.context.local_repo_branch}-{self.context.local_repo_commit[:5]}_{TimeUtils.get_current_time_str()}" self.context.out_project = os.path.join("out", f"{file_name}.zip") self.context.out_debug_apk = os.path.join("out", f"{file_name}_debug.apk") self.context.out_release_apk = os.path.join("out", f"{file_name}_release.apk") diff --git a/scripts/project_copy.py b/scripts/project_copy.py index 7124184..dc1e77a 100644 --- a/scripts/project_copy.py +++ b/scripts/project_copy.py @@ -12,10 +12,8 @@ class ProjectCopy(Task): pass def init(self): - self.context.temp_project_path = self.context.project_original_path.replace("original", - self.context.package_name.replace( - ".", "_") + - "_" + self.context.local_repo_commit + - "_" + TimeUtils.get_current_time_str()) + self.context.temp_project_path = self.context.project_original_path.replace( + "original", self.context.package_name.replace(".", "_") + TimeUtils.get_formatted_time(format_str="%H%M%S") + ) pass