#!/bin/sh
# Collect the web app into web/ for bundling. The originals at the repo root stay
# the single source of truth — pcd_viewer.html is never edited for the native build.
# The .pcd files are deliberately excluded: DEFAULT_URL is expected to 404 and fall
# back to the drag-and-drop prompt, so bundling 1.2 GB of clouds would buy nothing.
set -eu

here=$(dirname "$0")
root="$here/.."
out="$here/web"

rm -rf "$out"
mkdir -p "$out"
cp "$root/pcd_viewer.html" "$out/"
cp -R "$root/vendor" "$out/"

echo "staged -> $(cd "$out" && pwd)"
