显示出进度

This commit is contained in:
luojian 2025-07-08 14:36:28 +08:00
parent 0bd86b2ba4
commit 38f22576de
1 changed files with 4 additions and 4 deletions

View File

@ -27,14 +27,14 @@ class ProjectBuild(Task):
def build_apk(self): def build_apk(self):
cmd = f"{self.gradlew()} -p {self.context.temp_project_path} assembleLawnWithQuickstepPlay" cmd = f"{self.gradlew()} -p {self.context.temp_project_path} assembleLawnWithQuickstepPlay"
app_logger().debug(f"build apk cmd = {cmd}") app_logger().debug(f"build apk cmd = {cmd}")
return_code, stdout, stderr = CommandUtils.execute(cmd) CommandUtils.execute_with_real_time_output(cmd)
app_logger().debug(f"build apk return_code = {return_code} stdout = {stdout} stderr = {stderr}") app_logger().debug(f"build apk end.")
def build_aab(self): def build_aab(self):
cmd = f"{self.gradlew()} -p {self.context.temp_project_path} bundleLawnWithQuickstepPlayRelease" cmd = f"{self.gradlew()} -p {self.context.temp_project_path} bundleLawnWithQuickstepPlayRelease"
app_logger().debug(f"build aab cmd = {cmd}") app_logger().debug(f"build aab cmd = {cmd}")
return_code, stdout, stderr = CommandUtils.execute(cmd) CommandUtils.execute_with_real_time_output(cmd)
app_logger().debug(f"build aab return_code = {return_code} stdout = {stdout} stderr = {stderr}") app_logger().debug(f"build aab end.")
def execute(self): def execute(self):
self.init() self.init()