From 9a3b84dd0d46b7689e729a507d4dbe03c61731d6 Mon Sep 17 00:00:00 2001 From: luojian Date: Mon, 7 Jul 2025 13:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/project_build.py | 8 ++++---- scripts/project_copy.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/project_build.py b/scripts/project_build.py index b335c82..bf96b41 100644 --- a/scripts/project_build.py +++ b/scripts/project_build.py @@ -18,16 +18,16 @@ class ProjectBuild(Task): return gradlew def build_apk(self): - cmd = f"{self.gradlew()} assembleLawnWithQuickstepPlay" + cmd = f"{self.gradlew()} -p {self.context.temp_project_path} assembleLawnWithQuickstepPlay" app_logger().debug(f"build apk cmd = {cmd}") return_code, stdout, stderr = CommandUtils.execute(cmd) - app_logger().debug(f"build apk return_code = {return_code} stdout = {stdout}") + app_logger().debug(f"build apk return_code = {return_code} stdout = {stdout} stderr = {stderr}") def build_aab(self): - cmd = f"{self.gradlew()} bundleLawnWithQuickstepPlayRelease" + cmd = f"{self.gradlew()} -p {self.context.temp_project_path} bundleLawnWithQuickstepPlayRelease" app_logger().debug(f"build aab cmd = {cmd}") return_code, stdout, stderr = CommandUtils.execute(cmd) - app_logger().debug(f"build aab return_code = {return_code} stdout = {stdout}") + app_logger().debug(f"build aab return_code = {return_code} stdout = {stdout} stderr = {stderr}") def execute(self): self.build_apk() diff --git a/scripts/project_copy.py b/scripts/project_copy.py index f2a081b..f9a3b4a 100644 --- a/scripts/project_copy.py +++ b/scripts/project_copy.py @@ -13,6 +13,7 @@ class ProjectCopy(Task): def init(self): self.context.temp_project_path = self.context.project_original_path.replace("original", - self.context.package_name) + self.context.package_name.replace( + ".", "_")) pass