11 lines
496 B
PowerShell
11 lines
496 B
PowerShell
# Starts the SmartFox OS VM (QEMU in WSL Debian). The window appears via WSLg.
|
|
# powershell -File tools\vm\start-vm.ps1 # boot the last built image
|
|
# powershell -File tools\vm\start-vm.ps1 -Build # rebuild image first
|
|
param([switch]$Build, [string]$Bt = "")
|
|
if ($Build) {
|
|
wsl -d Debian -u root -- bash /mnt/g/source/smartfox/image/build.sh
|
|
}
|
|
$extra = ""
|
|
if ($Bt) { $extra = "--bt $Bt" }
|
|
wsl -d Debian -u root -- bash -c "cd /root/smartfox && bash image/run-qemu.sh $extra"
|