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