Run a build. Args: target: BuildTarget name (e.g., 'StandaloneWindows64'). Uses active target if omitted. output_path: Output path. Uses 'Builds/ / ' if omitted. scenes: Scene paths to include. Uses Build Settings scenes if omitted.
(
self,
target: str | None = None,
output_path: str | None = None,
scenes: list[str] | None = None,
)
| 19 | return self._conn.send_request("build", {"action": "settings"}) |
| 20 | |
| 21 | def build( |
| 22 | self, |
| 23 | target: str | None = None, |
| 24 | output_path: str | None = None, |
| 25 | scenes: list[str] | None = None, |
| 26 | ) -> dict[str, Any]: |
| 27 | """Run a build. |
| 28 | |
| 29 | Args: |
| 30 | target: BuildTarget name (e.g., 'StandaloneWindows64'). Uses active target if omitted. |
| 31 | output_path: Output path. Uses 'Builds/<target>/<productName>' if omitted. |
| 32 | scenes: Scene paths to include. Uses Build Settings scenes if omitted. |
| 33 | """ |
| 34 | params: dict[str, Any] = {"action": "build"} |
| 35 | if target is not None: |
| 36 | params["target"] = target |
| 37 | if output_path is not None: |
| 38 | params["outputPath"] = output_path |
| 39 | if scenes is not None: |
| 40 | params["scenes"] = scenes |
| 41 | return self._conn.send_request( |
| 42 | "build", |
| 43 | params, |
| 44 | timeout_ms=600_000, |
| 45 | retry_max_time_ms=600_000, |
| 46 | ) |
| 47 | |
| 48 | def scenes(self) -> dict[str, Any]: |
| 49 | """Get build scenes list.""" |