varad130407's picture
feat: Aether OS v2.6 Solarized Warm Edition, x86_64 Rust microkernel, bootable ISO, and CA assessment reports
258148b verified
Raw History Blame Contribute Delete
585 Bytes
$ErrorActionPreference = 'Stop'
$qemu = Get-Command qemu-system-x86_64 -ErrorAction SilentlyContinue
if (-not $qemu) {
$qemuPath = 'C:\Program Files\qemu\qemu-system-x86_64.exe'
if (-not (Test-Path $qemuPath)) {
throw 'QEMU was not found. Install QEMU or add it to PATH.'
}
} else {
$qemuPath = $qemu.Source
}
if (-not (Test-Path 'target\micro-os-bios.img')) {
cargo build
}
& $qemuPath '-drive' 'format=raw,file=target\micro-os-bios.img' '-serial' 'stdio' '-display' 'none' '-no-reboot' '-device' 'isa-debug-exit,iobase=0xf4,iosize=0x04'