From 708f6d36d6dc3b6b22dbab41987f662d295bbcbf Mon Sep 17 00:00:00 2001 From: b1ackmai1er <39449559+b1ackmai1er@users.noreply.github.com> Date: Tue, 22 Dec 2020 20:31:18 +0800 Subject: [PATCH] Update Build.ps1 Revert --- Source/HBIOS/Build.ps1 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Source/HBIOS/Build.ps1 b/Source/HBIOS/Build.ps1 index 6f682f29..327f9a6f 100644 --- a/Source/HBIOS/Build.ps1 +++ b/Source/HBIOS/Build.ps1 @@ -92,22 +92,19 @@ $ErrorAction = 'Stop' # Directories of required build tools (TASM & cpmtools) $TasmPath = '..\..\tools\tasm32' $CpmToolsPath = '..\..\tools\cpmtools' -$CmpToolsPath = "..\..\tools\lzsa" # Add tool directories to PATH and setup TASM's TABS directory path $env:TASMTABS = $TasmPath -$env:PATH = $TasmPath + ';' + $CpmToolsPath + ';' + $CmpToolsPath + ';' + $env:PATH +$env:PATH = $TasmPath + ';' + $CpmToolsPath + ';' + $env:PATH # Initialize working variables $OutDir = "../../Binary" # Output directory for final image file $RomFmt = "wbw_rom${RomSize}" # Location of files to imbed in ROM disk $BlankROM = "Blank${RomSize}KB.dat" # An initial "empty" image for the ROM disk of propoer size $RomDiskFile = "RomDisk.tmp" # Temporary filename used to create ROM disk image -$SystemFile = "SysFile.tmp" $RomFile = "${OutDir}/${RomName}.rom" # Final name of ROM image $ComFile = "${OutDir}/${RomName}.com" # Final name of COM image (command line loadable HBIOS/CBIOS) $ImgFile = "${OutDir}/${RomName}.img" # Final name of IMG image (memory loadable HBIOS/CBIOS image) -$CmpRomFile = "${OutDir}/${RomName}.lza"# Final name of compresser ROM image # Select the proper CBIOS to include in the ROM. UNA is special. if ($Platform -eq "UNA") {$Bios = 'una'} else {$Bios = 'wbw'} @@ -245,12 +242,10 @@ if ($Platform -eq "UNA") } else { - Concat 'hbios_rom.bin','osimg.bin','osimg1.bin','osimg.bin' $SystemFile - Concat $SystemFile,$RomDiskFile $RomFile + Concat 'hbios_rom.bin','osimg.bin','osimg1.bin','osimg.bin',$RomDiskFile $RomFile Concat 'hbios_app.bin','osimg_small.bin' $ComFile # Concat 'hbios_img.bin','osimg_small.bin' $ImgFile } -lzsa -f2 $SystemFile $CmpRomFile # Remove the temporary working ROM disk file -Remove-Item $SystemFile,$RomDiskFile +Remove-Item $RomDiskFile