Skip to content

Commit 7a40a0d

Browse files
committed
add script for rolling flutter_embedder.h
1 parent dd861f5 commit 7a40a0d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/roll_embedder_header.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
ENGINE_VERSION="$(curl -s https://raw.githubusercontent.com/flutter/flutter/stable/bin/internal/engine.version)"
4+
5+
if [ ! -f "third_party/flutter_embedder_header/include/flutter_embedder.h" ]; then
6+
echo "Incorrect working directory. Please launch this script with the flutter-pi repo root as the working directory, using 'tools/roll_embedder_header.sh'.".
7+
exit 1
8+
fi
9+
10+
curl -o third_party/flutter_embedder_header/include/flutter_embedder.h "https://raw.githubusercontent.com/flutter/engine/$ENGINE_VERSION/shell/platform/embedder/embedder.h"
11+
echo "$ENGINE_VERSION" > third_party/flutter_embedder_header/engine.version

0 commit comments

Comments
 (0)