-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLaunch_Desktop.command
More file actions
executable file
·29 lines (25 loc) · 937 Bytes
/
Copy pathLaunch_Desktop.command
File metadata and controls
executable file
·29 lines (25 loc) · 937 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
#!/bin/bash
# Run native desktop app from source (no browser, free open)
# Robust to project folder rename/move (broken .venv paths).
set -e
cd "$(dirname "$0")"
ROOT="$(pwd)"
# shellcheck disable=SC1091
source "$ROOT/_lib_venv.sh"
export GRS_RAM_GB=16
export GRS_SSD_CACHE="$ROOT/app/ssd_cache"
export GRS_REQUIRE_LOGIN=0
echo "=============================================="
echo " GRS Observatory — native desktop (no web)"
echo " Folder: $ROOT"
echo "=============================================="
if ! command -v python3 >/dev/null; then
echo "python3 required"; read -r -p "Enter to close"; exit 1
fi
PY="$(grs_ensure_venv)" || { read -r -p "Enter to close"; exit 1; }
"$PY" -m pip install -q --upgrade pip
"$PY" -m pip install -q -r "$ROOT/requirements.txt"
mkdir -p "$ROOT/app/ssd_cache" "$ROOT/app/outputs" "$ROOT/app/uploads" \
"$ROOT/app/logs" "$ROOT/app/nasa_cache"
cd "$ROOT/app"
exec "$PY" desktop_app.py