20 lines
404 B
Bash
Executable File
20 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Define the path to the .env file for development
|
|
ENV_FILE_PATH=".env.development"
|
|
|
|
# Check if the .env file exists
|
|
if [ ! -f $ENV_FILE_PATH ]; then
|
|
echo "$ENV_FILE_PATH does not exist"
|
|
exit 1
|
|
fi
|
|
|
|
# Copy the .env file for development to .env
|
|
cp $ENV_FILE_PATH .env
|
|
|
|
# Build the APK for development
|
|
flutter build apk --debug
|
|
|
|
# Optionally, remove the .env file after the build
|
|
# rm .env
|