run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<void> run() async {
print('Building release AppBundle (AAB)...');
final result = await Process.run('flutter', [
'build',
'appbundle',
'--release',
], runInShell: true);
if (result.exitCode != 0) {
print('Build failed:');
print(result.stderr);
return;
}
print('AppBundle built successfully.');
}