chore: add local dev toolchain environment

This commit is contained in:
Edison Jwa
2026-05-25 16:11:32 +09:00
parent afd8e525f9
commit c502a4dd00
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -74,6 +74,7 @@ chanora-docs-repo-format-*.zip
**/Cargo.lock.bak
# Flutter / Dart generated (but keep pubspec.lock for the PoC apps)
.flutter-home/
**/.dart_tool/
**/.flutter-plugins
**/.flutter-plugins-dependencies
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Source this file before local verification commands:
# source tools/dev-env.sh
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root="$(cd "${script_dir}/.." && pwd)"
if [[ -x "${repo_root}/.flutter-home/flutter/bin/flutter" ]]; then
export PATH="${repo_root}/.flutter-home/flutter/bin:${PATH}"
elif [[ -n "${FLUTTER_HOME:-}" && -x "${FLUTTER_HOME}/bin/flutter" ]]; then
export PATH="${FLUTTER_HOME}/bin:${PATH}"
elif [[ -x "${HOME}/sdks/flutter/bin/flutter" ]]; then
export PATH="${HOME}/sdks/flutter/bin:${PATH}"
fi
if [[ -d "${HOME}/.cargo/bin" ]]; then
export PATH="${HOME}/.cargo/bin:${PATH}"
fi