Files
cutdex/tool/flutter_local.dart
T
lingjhf 0343e2f723 refactor(build): unify SDK configuration and release tooling
Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides.

Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python.

Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
2026-10-06 23:34:15 +08:00

26 lines
710 B
Dart

import 'dart:io';
import 'src/local_environment.dart';
Future<void> main(List<String> arguments) async {
try {
exitCode = await runLocalFlutter(
arguments,
root: Directory.fromUri(Platform.script.resolve('../')),
inherited: Platform.environment,
);
} on FormatException catch (error) {
stderr.writeln(error.message);
exitCode = 2;
} on FileSystemException {
stderr.writeln('Cannot read .env.local; check the file permissions.');
exitCode = 1;
} on StateError catch (error) {
stderr.writeln(error.message);
exitCode = 1;
} on ProcessException {
stderr.writeln('Cannot start the project Flutter SDK. Run fvm use first.');
exitCode = 1;
}
}