finalize method

Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>> finalize(
  1. Directory rootDirectory, {
  2. ReleaseBundle? releaseBundle,
  3. 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',
  );
}