Skip to content

Commit

Permalink
vendoring script tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
craiglabenz committed Nov 13, 2023
1 parent 612a4ab commit b89d9b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/mediapipe-task-text/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import 'dart:io';
import 'package:native_assets_cli/native_assets_cli.dart';
import 'package:http/http.dart' as http;

const assetFilename = 'libtext_classifier.dylib';
const cloudAssetFilename = 'libtext_classifier-v0.0.3.dylib';
const localAssetFilename = 'libtext_classifier.dylib';
const assetLocation =
'https://storage.googleapis.com/random-storage-asdf/$assetFilename';
'https://storage.googleapis.com/random-storage-asdf/$cloudAssetFilename';

File outputFile = File(
'/Users/craiglabenz/Dev/git/google/flutter-mediapipe/packages/mediapipe-task-text/logs-build.txt');
Expand All @@ -25,7 +26,7 @@ void main(List<String> args) async {
Future<void> _build(List<String> args) async {
final buildConfig = await BuildConfig.fromArgs(args);
final buildOutput = BuildOutput();
final downloadFileLocation = buildConfig.outDir.resolve(assetFilename);
final downloadFileLocation = buildConfig.outDir.resolve(localAssetFilename);
if (!buildConfig.dryRun) {
final downloadUri = Uri.parse(assetLocation);
log('Downloading $downloadUri');
Expand Down

0 comments on commit b89d9b7

Please sign in to comment.