-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.command
More file actions
executable file
·40 lines (36 loc) · 1.32 KB
/
Copy pathupdate.command
File metadata and controls
executable file
·40 lines (36 loc) · 1.32 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
37
38
39
40
#!/bin/bash
# Doppelklickbar im Finder: installiert Abhaengigkeiten, baut und registriert StateArk.
cd "$(dirname "$0")" || exit 1
clear
echo "StateArk Update"
echo "==============="
echo "Ordner: $(pwd)"
echo
if ! command -v node >/dev/null 2>&1; then
echo "FEHLER: Node ist nicht installiert."
echo "Bitte die LTS-Version von https://nodejs.org installieren und dieses Fenster erneut oeffnen."
echo
read -n 1 -s -r -p "Taste druecken zum Schliessen..."
exit 1
fi
MAJOR=$(node -p "process.versions.node.split('.')[0]")
if [ "$MAJOR" -lt 20 ]; then
echo "FEHLER: Node $(node --version) ist zu alt, benoetigt wird v20 oder hoeher."
echo
read -n 1 -s -r -p "Taste druecken zum Schliessen..."
exit 1
fi
set -e
echo "1/4 Abhaengigkeiten installieren..."; npm install --silent
echo "2/4 Selbsttest..."; npm test
echo "3/4 Bauen..."; npm run build
echo "4/4 In Claude Desktop registrieren..."; npm run install-claude-desktop
set +e
echo
echo "==============================================================="
echo " Fertig. Jetzt Claude Desktop mit Cmd+Q komplett beenden"
echo " und neu oeffnen. Danach im Chat fragen:"
echo " \"welche StateArk-Tools hast du?\" -> attach_artifact muss dabei sein"
echo "==============================================================="
echo
read -n 1 -s -r -p "Taste druecken zum Schliessen..."