-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall.command
More file actions
executable file
·33 lines (27 loc) · 921 Bytes
/
install.command
File metadata and controls
executable file
·33 lines (27 loc) · 921 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
33
#!/bin/bash
set -euo pipefail
log() { printf "[%s] %s\n" "$(date '+%Y-%m-%d %H:%M:%S')" "$*"; }
cleanup() {
if [[ -n "${TMP_DIR:-}" && -d "$TMP_DIR" ]]; then
log "Cleaning up temporary directory: $TMP_DIR"
rm -rf "$TMP_DIR" || true
fi
}
trap cleanup EXIT
log "=== Step 1: Checking for uv ==="
if command -v uv >/dev/null 2>&1; then
log "uv is already installed."
else
log "Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
log "uv installed. PATH updated to include $HOME/.local/bin"
fi
log "=== Step 2: Moving extracted app into ~/Applications ==="
mkdir -p "$HOME/Applications"
# Change to the directory where this script is located
cd "$(dirname "$0")"
log "Changed to script directory: $(pwd)"
make setup
log "✅ Installation complete! The application is now in ~/Applications."
log "✅ You can close this terminal window."