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