You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
445 B
29 lines
445 B
4 years ago
|
part of './grind.dart';
|
||
|
|
||
|
@Task('打包Android项目')
|
||
|
buildApk() async {
|
||
|
await runAsync(
|
||
|
'flutter',
|
||
|
arguments: [
|
||
|
'build',
|
||
|
'apk',
|
||
|
'--target-platform=android-arm64',
|
||
|
'--dart-define',
|
||
|
'BUILD_TYPE=PRODUCT',
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@Task('打包iOS项目')
|
||
|
buildIos() async {
|
||
|
await runAsync(
|
||
|
'flutter',
|
||
|
arguments: [
|
||
|
'build',
|
||
|
'ios',
|
||
|
'--dart-define',
|
||
|
'BUILD_TYPE=PRODUCT',
|
||
|
],
|
||
|
);
|
||
|
}
|