-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathinstall-qudag.sh
More file actions
executable file
·33 lines (29 loc) · 994 Bytes
/
Copy pathinstall-qudag.sh
File metadata and controls
executable file
·33 lines (29 loc) · 994 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
#!/bin/bash
# QuDAG CLI Installation Script
set -e
echo "🚀 Building QuDAG CLI..."
cargo build --bin qudag --release
echo "📦 Installing QuDAG CLI..."
if [ -d "$HOME/.local/bin" ] && [[ ":$PATH:" == *":$HOME/.local/bin:"* ]]; then
cp target/release/qudag "$HOME/.local/bin/qudag"
echo "✅ Installed to $HOME/.local/bin/qudag"
elif [ -w "/usr/local/bin" ]; then
cp target/release/qudag /usr/local/bin/qudag
echo "✅ Installed to /usr/local/bin/qudag"
else
sudo cp target/release/qudag /usr/local/bin/qudag
echo "✅ Installed to /usr/local/bin/qudag (with sudo)"
fi
echo "🔧 Testing installation..."
if command -v qudag &> /dev/null; then
echo "✅ QuDAG CLI installed successfully!"
echo ""
echo "Try these commands:"
echo " qudag --help"
echo " qudag vault --help"
echo " qudag vault generate --length 16"
echo " qudag vault config show"
else
echo "❌ Installation failed - qudag command not found in PATH"
exit 1
fi