Fix build scripts.

This commit is contained in:
TomAwezome 2021-11-30 00:23:02 -05:00
parent 6525ef7aa3
commit 4da4e06b0d
3 changed files with 13 additions and 5 deletions

View file

@ -45,6 +45,6 @@ sudo sync
echo "Deleting temp HDD"
rm ./ZealOS.raw
echo "Deleting temp mount folder"
rm -rf /tmp/zealtmp
sudo rm -rf /tmp/zealtmp
echo "Done, build/ contents:"
ls

View file

@ -14,6 +14,7 @@ exit # Comment this line out
# sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2
sudo partprobe /dev/nbd0
sudo mkdir /tmp/zealtmp
sudo mount /dev/nbd0p1 /tmp/zealtmp
echo "removing src/ files"
rm -rf ../src/*
@ -21,12 +22,18 @@ echo "copying src/ files from root of mounted hdd"
sudo cp -r /tmp/zealtmp/* ../src/
sudo rm ../src/Boot/BootMHD2.BIN.C
echo "src/ files copied"
echo "copying docs/ files from HTML/ folder of mounted .vdi"
sudo cp -r /tmp/zealtmp/HTML/* ../docs/
echo "docs/ files copied"
echo "unmounting..."
sudo umount /tmp/zealtmp
sudo rm -rf /tmp/zealtmp
sudo qemu-nbd -d /dev/nbd0
echo "unmounted hdd"
echo "set perms"
sudo chown -R $USER:$USER ../src/*
mv ../src/Tmp/AUTO.ISO.C ./AUTO.ISO
echo "finished."
git status
#git status

View file

@ -7,8 +7,8 @@
sudo modprobe nbd
echo "Edit this script first to pick your VM path & file!"
exit # Comment this line out
#echo "Edit this script first to pick your VM path & file!"
#exit # Comment this line out
# Uncomment ONE of the next lines and edit it to point to your VM HDD
# sudo qemu-nbd -c dev/nbd0 ~/VirtualBox\ VMs/ZealOS/ZealOS.vdi
@ -16,6 +16,7 @@ exit # Comment this line out
# sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2
sudo partprobe /dev/nbd0
sudo mkdir /tmp/zealtmp
sudo mount /dev/nbd0p1 /tmp/zealtmp
echo "Merging with src/"
sudo cp -r ../src/* /tmp/zealtmp
@ -23,7 +24,7 @@ sudo sync
echo "Files copied, unmounting"
sudo umount /tmp/zealtmp
sudo qemu-nbd -d /dev/nbd0
sudo rm /tmp/zealtmp/* -r
sudo rm -rf /tmp/zealtmp
sudo sync
echo "finished."
git status