Files
iiEsaywebUIapp/scripts/build_android.sh
Arsen Akhmetzyanov 5947edec45
Some checks failed
L10n / l10n (push) Has been cancelled
Rebrand to iiEasy: naming, logo, l10n, docs, assets
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-19 23:21:16 +05:00

16 lines
687 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Сборка Android (APK или AAB) с нужным JAVA_HOME.
# Использование: ./scripts/build_android.sh [apk|appbundle]
set -e
export JAVA_HOME="${JAVA_HOME:-$HOME/development/jdk-17.0.13+11}"
export PATH="$JAVA_HOME/bin:$PATH"
export ANDROID_HOME="${ANDROID_HOME:-$HOME/Android/Sdk}"
export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH"
cd "$(dirname "$0")/.."
case "${1:-appbundle}" in
apk) flutter build apk --release ;;
*) flutter build appbundle --release ;;
esac
echo "Готово. APK: build/app/outputs/flutter-apk/app-release.apk"
echo " AAB: build/app/outputs/bundle/release/app-release.aab"