Added: Install.sh - Fast installation on GNU+Linux
This commit is contained in:
parent
aa48ad2887
commit
da91ca90f7
2 changed files with 36 additions and 3 deletions
30
install.sh
Normal file
30
install.sh
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Fast Installer - For GNU+Linux
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔧 Installing zupt..."
|
||||
|
||||
# Create temp directory
|
||||
TMP_DIR=$(mktemp -d)
|
||||
|
||||
# Clone repo
|
||||
git clone https://github.com/cristiancmoises/zupt.git "$TMP_DIR/zupt"
|
||||
|
||||
cd "$TMP_DIR/zupt"
|
||||
|
||||
# Build
|
||||
make clean
|
||||
make
|
||||
|
||||
# Install
|
||||
sudo cp zupt /usr/local/bin/
|
||||
|
||||
echo "✅ Installed to /usr/local/bin/zupt"
|
||||
|
||||
# Cleanup
|
||||
cd ~
|
||||
rm -rf "$TMP_DIR"
|
||||
|
||||
echo "🧹 Cleanup done"
|
||||
echo "🔒 You can now run: zupt"
|
||||
Loading…
Reference in a new issue