-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·45 lines (35 loc) · 990 Bytes
/
install.sh
File metadata and controls
executable file
·45 lines (35 loc) · 990 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
44
45
#!/bin/bash
# sysc-Go one-line installer
# Usage: curl -fsSL https://raw.githubusercontent.com/Nomadcxx/sysc-Go/master/install.sh | sudo bash
set -e
echo "sysc-Go installer"
echo ""
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "Error: This script must be run as root"
echo "Usage: curl -fsSL https://raw.githubusercontent.com/Nomadcxx/sysc-Go/master/install.sh | sudo bash"
exit 1
fi
# Check for Go
if ! command -v go &> /dev/null; then
echo "Error: Go is not installed"
echo "Install Go first: https://go.dev/doc/install"
exit 1
fi
# Create temp directory
TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR"
echo "Cloning sysc-Go..."
git clone https://github.com/Nomadcxx/sysc-Go.git
cd sysc-Go
echo "Building installer..."
go build -o install-syscgo ./cmd/installer/
echo "Running installer..."
./install-syscgo
# Cleanup
cd /
rm -rf "$TEMP_DIR"
echo ""
echo "Installation complete."
echo "Try: syscgo -effect fire -theme dracula"
echo " or: syscgo-tui"