1
0
forked from firka/firka

Update build_apk.sh to build using custom sdk for release builds

This commit is contained in:
2025-07-17 13:28:29 +02:00
parent 3787c697e5
commit 39b2cee0aa

View File

@@ -1,8 +1,15 @@
#!/usr/bin/env bash
#!/bin/bash
cd firka
flutter gen-l10n --template-arb-file app_hu.arb
echo $1 | grep main >/dev/null \
&& flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64 \
|| flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
if [ -f "$HOME/.flutter_path" ]; then
flutter gen-l10n --template-arb-file app_hu.arb
echo $1 | grep main >/dev/null \
&& flutter build apk --release --tree-shake-icons --split-per-abi --local-engine-src-path $(cat $HOME/.flutter_path)/engine/src --local-engine=android_release --local-engine-host=host_release --target-platform android-arm,android-arm64 \
|| flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
else
flutter gen-l10n --template-arb-file app_hu.arb
echo $1 | grep main >/dev/null \
&& flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64 \
|| flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
fi