-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (23 loc) · 965 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (23 loc) · 965 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
#!/bin/bash
# Setup script for Rix - Rust Intelligentia UniX
# Run this once to install dependencies, then use 'make' to build
set -e
echo "🦀 Setting up Rix..."
echo ""
# Check for required tools
command -v rustc >/dev/null 2>&1 || { echo "❌ Rust not found. Install with: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"; exit 1; }
command -v nasm >/dev/null 2>&1 || { echo "❌ NASM not found. Install with: brew install nasm (macOS) or apt-get install nasm (Linux)"; exit 1; }
# Check for Rust nightly
if ! rustup toolchain list | grep -q nightly; then
echo "📦 Installing Rust nightly..."
rustup toolchain install nightly
fi
echo "🔧 Setting up Rust nightly..."
rustup default nightly
rustup component add rust-src llvm-tools 2>/dev/null || true
echo ""
echo "✅ Setup complete!"
echo ""
echo "Build with: make"
echo "Run with: make run"
echo "Or: qemu-system-x86_64 -drive format=raw,file=build/rix.img -m 256M"