22 lines
725 B
Bash
Executable File
22 lines
725 B
Bash
Executable File
#!/bin/bash
|
|
# Carregar variáveis do .env
|
|
if [ -f .env ]; then
|
|
export $(grep -v '^#' .env | xargs)
|
|
fi
|
|
|
|
echo "Building Android Release APK with mise..."
|
|
echo "API URL: $EXPO_PUBLIC_API_URL"
|
|
|
|
mise exec -- npx expo prebuild --clean
|
|
|
|
# Exportar variáveis para o processo Gradle
|
|
export EXPO_PUBLIC_API_URL="${EXPO_PUBLIC_API_URL:-https://meowspool.felipecncloud.com/api/v1}"
|
|
export EXPO_PUBLIC_GOOGLE_CLIENT_ID="${EXPO_PUBLIC_GOOGLE_CLIENT_ID}"
|
|
export EXPO_PUBLIC_APP_SCHEME="${EXPO_PUBLIC_APP_SCHEME:-meowspool}"
|
|
export EXPO_PUBLIC_APP_ENV="${EXPO_PUBLIC_APP_ENV:-production}"
|
|
|
|
mise exec -- ./android/gradlew -p android assembleRelease
|
|
|
|
echo "Build complete!"
|
|
echo "APK: android/app/build/outputs/apk/release/app-release.apk"
|