-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdate.command
More file actions
executable file
·36 lines (30 loc) · 1.36 KB
/
Copy pathupdate.command
File metadata and controls
executable file
·36 lines (30 loc) · 1.36 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
#!/bin/bash
#
# mycelium — One-Click Updater for macOS
#
# Double-click this file in Finder to update your mycelium installation.
# Or run from Terminal: ./update.command
#
# Wraps scripts/update.sh: git pull, npm build, run new migrations,
# refresh ollama models, reload dashboard + middleware LaunchAgents.
# Re-run anytime — every step is idempotent.
set -euo pipefail
cd "$(dirname "$0")"
PROJECT_DIR="$(pwd)"
clear
echo "╔══════════════════════════════════════════════════════════╗"
echo "║ ║"
echo "║ mycelium Updater ║"
echo "║ Pulls latest changes, rebuilds, reloads services ║"
echo "║ ║"
echo "╚══════════════════════════════════════════════════════════╝"
echo ""
if [[ ! -f "$PROJECT_DIR/scripts/update.sh" ]]; then
echo "✗ scripts/update.sh not found in $PROJECT_DIR" >&2
echo " This file must live in the mycelium repo root." >&2
exit 1
fi
bash "$PROJECT_DIR/scripts/update.sh" "$@"
echo ""
echo "Done. You can close this window."
echo ""