-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·43 lines (36 loc) · 1.01 KB
/
setup.sh
File metadata and controls
executable file
·43 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Setup script for SimPic Flutter project
echo "Setting up SimPic Flutter project..."
# Check if Flutter is installed
if ! command -v flutter &> /dev/null; then
echo "Error: Flutter is not installed."
echo "Please install Flutter from https://flutter.dev/docs/get-started/install"
exit 1
fi
# Check Flutter installation
echo "Checking Flutter installation..."
flutter doctor
# Get Flutter dependencies
echo "Installing Flutter dependencies..."
flutter pub get
# Check for Android setup
if [ -d "$HOME/Android/Sdk" ]; then
echo "Android SDK found at $HOME/Android/Sdk"
else
echo "Warning: Android SDK not found. Please set ANDROID_HOME if needed."
fi
# Check for Java
if [ -n "$JAVA_HOME" ]; then
echo "JAVA_HOME is set to $JAVA_HOME"
else
echo "Warning: JAVA_HOME is not set. You may need to set it for Android builds."
fi
echo ""
echo "Setup complete!"
echo ""
echo "To run the app:"
echo " flutter run"
echo ""
echo "To build Android APK:"
echo " flutter build apk --release"
echo ""