pack method

Future<void> pack()

Execute with the msix:pack command

Implementation

Future<void> pack() async {
  await _initConfig();

  /// check if the appx manifest is exist
  String appxManifestPath =
      p.join(_config.buildFilesFolder, 'AppxManifest.xml');
  if (!(await File(appxManifestPath).exists())) {
    String error = 'run "msix:build" first';
    _logger.stderr(error.red);
    exit(-1);
  }

  if (_config.signMsix && !_config.store) {
    await SignTool().getCertificatePublisher();
  }
  await _packMsixFiles();

  _printMsixOutputLocation();
}