diff --git a/tool/_build.dart b/tool/_build.dart index 79a7e81d..9b56d159 100644 --- a/tool/_build.dart +++ b/tool/_build.dart @@ -3,8 +3,9 @@ part of './grind.dart'; @Task('打包Android项目') buildApk() async { await runAsync( - 'flutter', + 'fvm', arguments: [ + 'flutter', 'build', 'apk', '--target-platform=android-arm64', @@ -24,8 +25,9 @@ buildApk() async { @Task('打包Android项目') buildApkDev() async { await runAsync( - 'flutter', + 'fvm', arguments: [ + 'flutter', 'build', 'apk', '--target-platform=android-arm64', @@ -44,8 +46,9 @@ buildApkDev() async { @Task('打包iOS项目') buildIos() async { await runAsync( - 'flutter', + 'fvm', arguments: [ + 'flutter' 'build', 'ios', '--dart-define',