在主界面点击“安装”按钮后自动切换至帮助页面

This commit is contained in:
2023-11-07 18:47:21 +08:00
parent 97b761067b
commit 0300f8e599
7 changed files with 119 additions and 22 deletions

12
VM-source/build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
#cd `dirname $0`
bin=$1
nasm -f bin $1 -o `basename $1`.bin
if [[ $? != 0 ]];then
exit
fi
sudo modprobe nbd 8
sudo qemu-nbd `dirname $0`/test.qcow2 --connect /dev/nbd0
sudo dd if=`basename $1`.bin of=/dev/nbd0
sudo qemu-nbd -d /dev/nbd0
kvm --hda `dirname $0`/test.qcow2 -rtc base=localtime