打包脚本修改为在fvm控制环境下打包

hmxc
张萌 3 years ago
parent a8d9176b4c
commit 3718ba0130

@ -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',

Loading…
Cancel
Save