-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.command
More file actions
executable file
·32 lines (26 loc) · 1006 Bytes
/
start.command
File metadata and controls
executable file
·32 lines (26 loc) · 1006 Bytes
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
#!/bin/bash
# Double-click this file on macOS to launch Research Task Manager.
# First run: right-click → Open (to bypass Gatekeeper).
cd "$(dirname "$0")"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " Research Task Manager"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Require Python 3
if ! command -v python3 &>/dev/null; then
echo "✗ Python 3 not found."
echo " Install from https://python.org and try again."
read -n 1 -s -r -p "Press any key to close…"
exit 1
fi
# Create virtual environment once
if [ ! -d ".venv" ]; then
echo "→ Creating virtual environment…"
python3 -m venv .venv
fi
source .venv/bin/activate
echo "→ Checking dependencies…"
pip install -q -r requirements.txt
echo "→ Starting app at http://localhost:8080"
echo " Close this window to stop."
echo ""
python app.py