getAppPath function

String getAppPath(
  1. String releasePath
)

Get path of .app file in the release path

Implementation

String getAppPath(String releasePath) {
  final dir = Directory(releasePath);
  for (final file in dir.listSync()) {
    if (file.path.endsWith('.app')) {
      return file.path;
    }
  }
  return '';
}