-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTART_APP.sh
More file actions
46 lines (40 loc) · 1.15 KB
/
Copy pathSTART_APP.sh
File metadata and controls
46 lines (40 loc) · 1.15 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
44
45
46
#!/bin/bash
# Dessertable - Easy Startup Script for Mac/Linux
# Run this script to launch the application
echo "========================================"
echo "Dessertable - Launcher"
echo "========================================"
echo ""
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
if [ $? -ne 0 ]; then
echo "ERROR: Failed to create virtual environment"
echo "Please make sure Python 3 is installed"
read -p "Press Enter to exit..."
exit 1
fi
fi
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Check if dependencies are installed
echo "Checking dependencies..."
pip show Flask > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Installing dependencies..."
pip install -r requirements.txt
if [ $? -ne 0 ]; then
echo "ERROR: Failed to install dependencies"
read -p "Press Enter to exit..."
exit 1
fi
fi
# Launch the GUI launcher
echo ""
echo "Starting Dessertable GUI Launcher..."
echo ""
python launcher.py
# If launcher exits, deactivate venv
deactivate