-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdate - Mac.command
More file actions
37 lines (32 loc) · 913 Bytes
/
Copy pathUpdate - Mac.command
File metadata and controls
37 lines (32 loc) · 913 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
34
35
36
37
#!/bin/bash
cd "$(dirname "$0")"
if ! command -v git &>/dev/null; then
echo ""
echo "This update script requires Git. If you downloaded a ZIP, update by"
echo "downloading the latest release from:"
echo "https://github.com/f0dders/strokeindexr/releases/latest"
echo ""
sleep 5
exit 1
fi
if [ ! -d ".git" ]; then
echo ""
echo "This folder wasn't cloned from GitHub — it looks like a ZIP download."
echo "To update, download the latest release from:"
echo "https://github.com/f0dders/strokeindexr/releases/latest"
echo ""
echo "Your data folder (data/) will not be affected."
echo ""
sleep 5
exit 0
fi
echo ""
echo "⛳ Updating StrokeIndexr..."
echo ""
git pull origin main
source venv/bin/activate 2>/dev/null || true
pip install -q --disable-pip-version-check -r requirements.txt
echo ""
echo "✓ Update complete. Restart the app to use the new version."
echo ""
sleep 5