Fixed copying of output file when creating ISO.

This commit is contained in:
neviyn 2018-05-02 21:18:09 +01:00
parent f375ef47c5
commit de9e71bbb0

View File

@ -46,7 +46,7 @@ task "check-multiboot", "Checks the grub multiboot header.":
task "build-disc", "Creates an ISO with the GRUB bootloader.":
removeDir("isodir")
createDir("isodir/boot/grub")
copyFile("myos.bin", "isodir/boot/kernel")
copyFile(outputFile, "isodir/boot/kernel")
copyFile("grub.cfg", "isodir/boot/grub/grub.cfg")
if not shell("grub-mkrescue -o ", outputIso, " isodir"):
direShell("grub2-mkrescue -o ", outputIso, " isodir")