mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Move the built web bundle into an embedded fabro-spa crate so Cargo and release builds no longer depend on Bun at build time, and preserve the local dev override path for fast UI iteration. At the same time, rename interview and agent-level aborted flows to interrupted, keep cancelled for run-level shutdown, and stop reporting skipped answers as interruptions in the run event stream.
17 lines
374 B
Bash
Executable file
17 lines
374 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
web_dir="$repo_root/apps/fabro-web"
|
|
dist_dir="$web_dir/dist"
|
|
asset_dir="$repo_root/lib/crates/fabro-spa/assets"
|
|
|
|
(
|
|
cd "$web_dir"
|
|
bun run build
|
|
)
|
|
|
|
rm -rf "$asset_dir"
|
|
mkdir -p "$asset_dir"
|
|
cp -R "$dist_dir"/. "$asset_dir"/
|
|
find "$asset_dir" -type f -name '*.map' -delete
|