downloadBridge function

Future<void> downloadBridge(
  1. String dest, {
  2. BytesFetcher? fetch,
  3. void onPhase(
    1. String phase
    )?,
})

Downloads the release bridge to dest, checks it against the published sha256, and marks it executable.

Implementation

Future<void> downloadBridge(String dest, {BytesFetcher? fetch, void Function(String phase)? onPhase}) async {
  onPhase?.call('downloading the glint-iossim bridge for glint $glintVersion');
  await downloadReleaseAsset(bridgeAssetName, dest, executable: true, fetch: fetch);
}