#!/usr/bin/env bash
# Copies shared assets from web/ into flutter_client/. Run before
# `flutter build` and as part of CI. Idempotent.
set -euo pipefail

cd "$(dirname "$0")/.."

mkdir -p shared assets/svg
cp ../web/src/lib/styles/tokens.json     shared/fabledsword.tokens.json
cp ../web/src/lib/styles/error-copy.json assets/error-copy.json
cp ../web/static/placeholders/album-fallback.svg assets/svg/album-fallback.svg

echo "shared assets synced from web/"
