From 846fd6a4ae42a66b4af30d7d56f241e38e450617 Mon Sep 17 00:00:00 2001 From: Craig Labenz Date: Mon, 13 May 2024 17:48:43 -0700 Subject: [PATCH] debugging --- packages/mediapipe-task-text/build.dart | 2 ++ tool/ci_script_shared.sh | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/mediapipe-task-text/build.dart b/packages/mediapipe-task-text/build.dart index b57697b..e8e058a 100644 --- a/packages/mediapipe-task-text/build.dart +++ b/packages/mediapipe-task-text/build.dart @@ -85,6 +85,8 @@ Future downloadAsset(String assetUrl, Uri destinationFile) async { final downloadUri = Uri.parse(assetUrl); final downloadedFile = File(destinationFile.toFilePath()); + log('Downloading file from $downloadUri'); + final downloadResponse = await http.get(downloadUri); log('Download response: ${downloadResponse.statusCode}'); diff --git a/tool/ci_script_shared.sh b/tool/ci_script_shared.sh index 22cd963..cfd0011 100644 --- a/tool/ci_script_shared.sh +++ b/tool/ci_script_shared.sh @@ -46,21 +46,25 @@ function ci_package () { if [ -f "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/live-run-build-log.txt" ] then echo "live-run-build-log.txt" - cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/live-run-build-log.txt" + cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/live-run-build-log.txt"; echo fi if [ -f "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/dryrun-build-log.txt" ] then echo "dryrun-build-log.txt" - cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/dryrun-build-log.txt" + cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/build/dryrun-build-log.txt"; echo fi if [ -f "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/.dart_tool/native_assets.yaml" ] then echo "native_assets.yaml" - cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/.dart_tool/native_assets.yaml" + cat "/Users/runner/work/flutter-mediapipe/flutter-mediapipe/packages/mediapipe-task-text/.dart_tool/native_assets.yaml"; echo fi + + echo "arm64_libtext.dylib meta info:" + find .dart_tool -name "arm64_libtext.dylib" | head -n 1 | xargs ls -l + # Run any example tests if they exist if [ -d "example/test" ] then