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

hmxc
张萌 3 years ago
parent a8d9176b4c
commit 3718ba0130

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

Loading…
Cancel
Save