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
|
|
@ -26,13 +26,16 @@ Zupt compresses and encrypts backup archives. LZ77+Huffman compression, AES-256-
|
|||
|
||||
```bash
|
||||
# Build
|
||||
git clone https://github.com/cristiancmoises/zupt.git && cd zupt && make clean && make
|
||||
git clone https://github.com/cristiancmoises/zupt.git && cd zupt && make clean && make && sudo cp zupt /usr/local/bin/ && cd ~ && rm -rf zupt
|
||||
|
||||
# Password-encrypted backup
|
||||
```
|
||||
|
||||
```# Password-encrypted backup
|
||||
zupt compress -p backup.zupt ~/Documents/
|
||||
zupt extract -o ~/restored/ -p backup.zupt
|
||||
```
|
||||
|
||||
# Post-quantum encrypted backup
|
||||
```# Post-quantum encrypted backup
|
||||
zupt keygen -o mykey.key # Generate keypair
|
||||
zupt keygen --pub -o pub.key -k mykey.key # Export public key
|
||||
zupt compress --pq pub.key backup.zupt ~/Documents/ # Encrypt with public key
|
||||
|
|
|
|||
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