This commit is contained in:
parent
5fcdd4ea97
commit
9a3b84dd0d
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue