Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
craiglabenz committed May 14, 2024
1 parent afe1804 commit 846fd6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/mediapipe-task-text/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Future<void> 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}');

Expand Down
10 changes: 7 additions & 3 deletions tool/ci_script_shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 846fd6a

Please sign in to comment.