finalize method
Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus> >
finalize(
- Directory rootDirectory, {
- ReleaseBundle? releaseBundle,
- String? platform,
Runs the finalizeCommands.
Throws a ReleasePackerError if a command fails.
Implementation
Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>> finalize(
Directory rootDirectory, {
ReleaseBundle? releaseBundle,
String? platform,
}) {
var finalizeCommands = this.finalizeCommands;
if (finalizeCommands != null && finalizeCommands.isNotEmpty) {
print('\n» Running finalize commands (${finalizeCommands.length})...');
}
return ReleasePackerCommand.executeCommands(
this,
finalizeCommands,
rootDirectory,
releaseBundle: releaseBundle,
platform: platform,
context: 'finalize',
);
}