22 lines
472 B
Bash
Executable File
22 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
# Build and deploy Android APK in one command
|
|
|
|
set -e
|
|
|
|
echo "🚀 Build and Deploy Android APK"
|
|
echo ""
|
|
|
|
# Pass all args (build type and/or --clean) through to the build script.
|
|
./scripts/build-android.sh "$@"
|
|
|
|
echo ""
|
|
|
|
# Deploy APK — extract build type (default debug), ignoring flags like --clean.
|
|
BUILD_TYPE="debug"
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
debug|release) BUILD_TYPE="$arg" ;;
|
|
esac
|
|
done
|
|
./scripts/deploy-android.sh "$BUILD_TYPE"
|