From c507552b7c5bf10d79082d08039a50e76537d73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Tue, 17 Mar 2026 13:21:46 +0100 Subject: [PATCH] Feat: build script UI/UX --- Cargo.toml | 1 - scripts/build.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 28c6496..a858059 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [workspace] members = ["crates/forth", "crates/markdown", "crates/project", "crates/ratatui", "plugins/cagire-plugins", "plugins/baseview", "plugins/egui-baseview", "plugins/nih-plug-egui", "xtask"] -exclude = ["scripts"] [workspace.package] version = "0.1.4" diff --git a/scripts/build.py b/scripts/build.py index b62b60a..796fff2 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -203,7 +203,7 @@ def _macos_env(p: Platform) -> dict[str, str] | None: def build_binary(root: Path, p: Platform, log: list[str], extra_args: list[str] | None = None) -> None: cmd = [builder_for(p), "build", "--release", *target_flags(p), *(extra_args or [])] log.append(f" Building: {' '.join(extra_args or ['default'])}") - run_cmd(cmd, log, env=_macos_env(p)) + run_cmd(cmd, log, env=_macos_env(p), cwd=root) def bundle_plugins(root: Path, p: Platform, log: list[str]) -> None: @@ -216,7 +216,7 @@ def bundle_plugins(root: Path, p: Platform, log: list[str]) -> None: def _bundle_plugins_native(root: Path, p: Platform, log: list[str]) -> None: log.append(" Bundling plugins (native xtask)") cmd = ["cargo", "xtask", "bundle", PLUGIN_NAME, "--release", *target_flags(p)] - run_cmd(cmd, log, env=_macos_env(p)) + run_cmd(cmd, log, env=_macos_env(p), cwd=root) def _bundle_plugins_cross(root: Path, p: Platform, log: list[str]) -> None: @@ -259,7 +259,7 @@ def bundle_desktop_app(root: Path, p: Platform, log: list[str]) -> None: return log.append(" Bundling desktop .app") cmd = ["cargo", "bundle", "--release", "--features", "desktop", "--bin", "cagire-desktop", *target_flags(p)] - run_cmd(cmd, log, env=_macos_env(p)) + run_cmd(cmd, log, env=_macos_env(p), cwd=root) # ---------------------------------------------------------------------------