Files
RememBerBerandCursor 9fdd13087c feat(next-flutter): add 0.1.0 desktop shell and JSON workspace
Stand up the independent Flutter product with workbench, i18n, and a real JSON format/vault/restore loop so P0–P2 can run without other product runtimes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 19:51:27 +08:00

12 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
export PATH="${FLUTTER_SDK:-$HOME/sdk/flutter}/bin:$PATH"
cd "$ROOT"
DATA_DIR="${1:-}"
ARGS=()
if [[ -n "$DATA_DIR" ]]; then
ARGS+=(--data-dir "$DATA_DIR")
fi
flutter run -d macos --dart-define=FLUTTER_APP_DATA="${DATA_DIR:-}" "${ARGS[@]}"