managarten/memoro/apps/mobile/eas-build-pre-install.sh
Till-JS e7f5f942f3 chore: initial commit - consolidate 4 projects into monorepo
Projects included:
- maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing)
- manacore (Expo mobile + SvelteKit web + Astro landing)
- manadeck (NestJS backend + Expo mobile + SvelteKit web)
- memoro (Expo mobile + SvelteKit web + Astro landing)

This commit preserves the current state before monorepo restructuring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:38:24 +01:00

18 lines
591 B
Bash
Executable file

#!/bin/bash
# This script runs before the EAS build process starts
# It copies the appropriate .env file based on the build profile
ENV_FILE_TO_USE="${EXPO_PUBLIC_USE_ENV_FILE:-.env}"
echo "Using environment file: $ENV_FILE_TO_USE"
if [ -f "$ENV_FILE_TO_USE" ]; then
echo "Copying $ENV_FILE_TO_USE to .env"
cp "$ENV_FILE_TO_USE" .env
else
echo "Warning: $ENV_FILE_TO_USE not found!"
fi
# Display the environment variables that will be used (without values for security)
echo "Environment variables that will be used (names only):"
grep -v '^#' .env | cut -d '=' -f1 | grep -v '^$'