mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
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>
12 lines
321 B
Bash
Executable File
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[@]}"
|