Feat: build script UI/UX

This commit is contained in:
2026-03-17 13:21:46 +01:00
parent d0b2076bf6
commit c507552b7c
2 changed files with 3 additions and 4 deletions

View File

@@ -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"

View File

@@ -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)
# ---------------------------------------------------------------------------