Update Linux app to use Firefox and auto-install dependencies
This commit is contained in:
1 parent
ce5175d8db
commit
5e891ad139
2 files changed
+16
-12
No files matched your search
Regular → Executable
+10
-4
@@ -4,11 +4,17 @@
|
||||
# Get the directory where this script is located
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
# Activate virtual environment if it exists
|
||||
if [ -d "$DIR/.venv" ]; then
|
||||
source "$DIR/.venv/bin/activate"
|
||||
# Create virtual environment if it doesn't exist
|
||||
if [ ! -d "$DIR/.venv" ]; then
|
||||
python3 -m venv "$DIR/.venv"
|
||||
fi
|
||||
|
||||
# Activate virtual environment
|
||||
source "$DIR/.venv/bin/activate"
|
||||
|
||||
# Install dependencies
|
||||
pip install -r "$DIR/requirements.txt"
|
||||
|
||||
# Run the application
|
||||
cd "$DIR"
|
||||
python journey_fm_app.py
|
||||
python3 journey_fm_app.py
|
||||
Reference in new issue
Block a user