-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
43 lines (34 loc) · 905 Bytes
/
install.sh
File metadata and controls
43 lines (34 loc) · 905 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
38
39
40
41
42
43
#!/bin/bash
set -e
REPO="Reim-developer/Sephera"
BINARY_NAME="sephera"
INSTALL_PATH="/usr/local/bin/$BINARY_NAME"
OS=$(uname -s)
case "$OS" in
Linux)
FILE_NAME="sephera_linux"
;;
Darwin)
FILE_NAME="sephera_macos"
;;
*)
echo "❌ Unsupported OS: $OS"
echo "👉 On Windows, please download manually:"
echo " https://github.com/$REPO/releases"
exit 1
;;
esac
URL="https://github.com/$REPO/releases/latest/download/$FILE_NAME"
echo "🔽 Downloading $FILE_NAME from $URL"
if command -v curl &> /dev/null; then
curl -L "$URL" -o "$BINARY_NAME"
elif command -v wget &> /dev/null; then
wget -q "$URL" -O "$BINARY_NAME"
else
echo "Neither curl nor wget found. Please install one of them."
exit 1
fi
chmod +x "$BINARY_NAME"
echo "Installing to $INSTALL_PATH"
sudo mv "$BINARY_NAME" "$INSTALL_PATH"
echo "Done! Try running: $BINARY_NAME --help"