build method

Future<bool> build()

Implementation

Future<bool> build() async {
  var script = 'flutter build ${platform.name}';
  if (buildName != null) {
    script += ' --build-name $buildName';
  }
  final buildNumber = DateTime.now().millisecondsSinceEpoch ~/ 1000;
  script += ' --build-number $buildNumber';
  logger.log('πŸ‘‰εΌ€ε§‹θΏ›θ‘Œζ‰“εŒ…......');
  final result = await runCommand(root, script).then((value) => value.first);
  if (result.exitCode != 0) {
    logger.log('ζ‰“εŒ…ε€±θ΄₯:${result.errText}', status: LogStatus.error);
    return false;
  }
  logger.log('ζ‰“εŒ…ζˆεŠŸ!', status: LogStatus.success);
  return true;
}