Skip to content

Commit

Permalink
fix: Make build script work on linux/arm
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Sep 30, 2024
1 parent 8bccc52 commit c825b28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_example.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
if [[ "$(uname)" == "Darwin" ]]; then
FLUTTER_ARCH="_arm64"
FLUTTER_HOST="macos"
else
FLUTTER_ARCH=""
FLUTTER_HOST="linux"
fi

if uname -m | grep "arm64"; then
FLUTTER_ARCH="_arm64"
else
FLUTTER_ARCH=""
fi

cd examples/default_counter_app && \
flutter build ${FLUTTER_HOST} --debug --local-engine-src-path=$FLUTTER_ENGINE_FOLDER/.. --local-engine=host_debug_unopt${FLUTTER_ARCH} --local-engine-host=host_debug_unopt${FLUTTER_ARCH}

0 comments on commit c825b28

Please sign in to comment.