-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·102 lines (85 loc) · 2.78 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·102 lines (85 loc) · 2.78 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
# Aura Semantic Engine - Universal Installation Script
# https://auravcs.com
set -e
echo ""
echo "========================================================"
echo " Aura Semantic Engine : v4.0 Alpha (Closed Beta) "
echo "========================================================"
echo ""
echo "Aura is currently in a gated preview for design partners."
echo "Please enter your cryptographic invite token to continue."
echo ""
read -p "Invite Token: " AURA_TOKEN
# Simple mock validation for the beta feel
if [ -z "$AURA_TOKEN" ] || [ ${#AURA_TOKEN} -lt 16 ]; then
echo ""
echo "❌ Error: Invalid or expired invite token."
echo "To request access to the private beta, please visit: https://auravcs.com"
exit 1
fi
echo ""
echo "🔐 Token verified. Authenticating with Sovereign Vault..."
sleep 1.5
# Detect OS and Architecture
OS="$(uname -s)"
ARCH="$(uname -m)"
echo "✨ Installing Aura Semantic Engine..."
VERSION="v0.2.0-alpha"
REPO="AuraLabs/aura"
# Map architecture
case "$ARCH" in
x86_64|amd64)
ASSET_ARCH="amd64"
;;
arm64|aarch64)
ASSET_ARCH="arm64"
;;
*)
echo "❌ Unsupported architecture: $ARCH"
exit 1
;;
esac
# Map OS
case "$OS" in
Linux)
ASSET_OS="linux"
;;
Darwin)
ASSET_OS="darwin"
;;
*)
echo "❌ Unsupported operating system: $OS"
exit 1
;;
esac
BINARY_NAME="aura-${ASSET_OS}-${ASSET_ARCH}"
DOWNLOAD_URL="https://github.com/${REPO}/releases/download/${VERSION}/${BINARY_NAME}"
echo "⬇️ Attempting to download pre-compiled binary for Aura ${VERSION}..."
if curl --output /dev/null --silent --head --fail "$DOWNLOAD_URL"; then
# Download binary
curl -sSL -o aura_bin "$DOWNLOAD_URL"
chmod +x aura_bin
sudo mv aura_bin /usr/local/bin/aura || { echo "❌ Failed to move binary to /usr/local/bin (try running with sudo)."; exit 1; }
echo "✓ Aura installed successfully to /usr/local/bin/aura"
else
echo "⚠️ Pre-compiled binary not found for ${VERSION}."
echo "🔨 Falling back to compiling from source via Cargo..."
if ! command -v cargo &> /dev/null; then
echo "❌ Rust and Cargo are not installed. Please install Rust (https://rustup.rs/) to compile Aura."
exit 1
fi
# Clone and build
TMP_DIR=$(mktemp -d)
git clone https://github.com/${REPO}.git "$TMP_DIR"
cd "$TMP_DIR"
cargo install --path . --locked
echo "✓ Aura compiled and installed successfully to ~/.cargo/bin/aura"
# Clean up
cd - > /dev/null
rm -rf "$TMP_DIR"
fi
echo ""
echo "🚀 Aura is ready!"
echo "Run 'aura login --token $AURA_TOKEN' to authenticate your local daemon."
echo "Run 'aura init' inside any Git repository to begin tracking semantic AI decisions."