-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·61 lines (53 loc) · 1.65 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·61 lines (53 loc) · 1.65 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
#!/bin/bash
# Aurora OS Build Script
echo "🌟 Aurora OS Builder"
echo "==================="
echo ""
# Check for dependencies
command -v nasm >/dev/null 2>&1 || {
echo "ERROR: nasm not found. Please install with: sudo pacman -S nasm"
exit 1
}
# Build Aurora OS v3 (most feature-rich)
echo "[+] Building Aurora OS v3..."
nasm -f bin aurora-final.asm -o aurora.bin
# Check if build succeeded
if [ ! -f aurora.bin ]; then
echo "ERROR: Build failed"
exit 1
fi
# Verify boot signature
echo "[+] Verifying boot sector..."
tail -c 2 aurora.bin | od -An -tx1 | grep -q "55 aa" && echo "✓ Boot signature verified" || {
echo "ERROR: Boot signature missing"
exit 1
}
# Create disk image if QEMU available
if command -v qemu-system-x86_64 >/dev/null 2>&1; then
echo "[+] Creating disk image..."
dd if=/dev/zero of=aurora.img bs=512 count=2880 2>/dev/null
dd if=aurora.bin of=aurora.img conv=notrunc 2>/dev/null
echo ""
echo "🏁 Build complete!"
echo ""
echo "To run Aurora OS in QEMU:"
echo " qemu-system-x86_64 -drive format=raw,file=aurora.img"
echo ""
echo "Features:"
echo "• Aurora OS v3.0 with interactive menu"
echo "• System information display"
echo "• Basic shell interface"
echo "• ESC/q to quit/reboot"
echo ""
# Run automatically
read -p "Run Aurora OS now? (y/n): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "[+] Starting QEMU..."
qemu-system-x86_64 -drive format=raw,file=aurora.img -monitor stdio
fi
else
echo ""
echo "✅ Build complete! File: aurora.bin"
echo "(QEMU not available - ready to boot from USB)"
fi