From 3718ba013094037c1ecf936d0c285511f5af0e87 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Fri, 2 Jul 2021 15:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=9C=A8fvm=E6=8E=A7=E5=88=B6=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/_build.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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',