This commit is contained in:
luojian 2025-07-07 13:40:23 +08:00
parent 5fcdd4ea97
commit 9a3b84dd0d
2 changed files with 6 additions and 5 deletions

View File

@ -18,16 +18,16 @@ class ProjectBuild(Task):
return gradlew return gradlew
def build_apk(self): 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}") app_logger().debug(f"build apk cmd = {cmd}")
return_code, stdout, stderr = CommandUtils.execute(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): 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}") app_logger().debug(f"build aab cmd = {cmd}")
return_code, stdout, stderr = CommandUtils.execute(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): def execute(self):
self.build_apk() self.build_apk()

View File

@ -13,6 +13,7 @@ class ProjectCopy(Task):
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("original",
self.context.package_name) self.context.package_name.replace(
".", "_"))
pass pass