更新文件名字的长度
This commit is contained in:
parent
446fe1c866
commit
0bd86b2ba4
|
@ -45,7 +45,7 @@ class ProjectBuild(Task):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def init(self):
|
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_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_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")
|
self.context.out_release_apk = os.path.join("out", f"{file_name}_release.apk")
|
||||||
|
|
|
@ -12,10 +12,8 @@ class ProjectCopy(Task):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
self.context.temp_project_path = self.context.project_original_path.replace("original",
|
self.context.temp_project_path = self.context.project_original_path.replace(
|
||||||
self.context.package_name.replace(
|
"original", self.context.package_name.replace(".", "_") + TimeUtils.get_formatted_time(format_str="%H%M%S")
|
||||||
".", "_") +
|
)
|
||||||
"_" + self.context.local_repo_commit +
|
|
||||||
"_" + TimeUtils.get_current_time_str())
|
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue