28 lines
556 B
PowerShell
28 lines
556 B
PowerShell
# Build Script for Amiga Game
|
|
|
|
$vasm = ".\vasmm68k_mot.exe"
|
|
$bootSrc = "boot.s"
|
|
$gameSrc = "main.s"
|
|
$bootBin = "boot.bin"
|
|
$gameBin = "game.bin"
|
|
|
|
# 1. Compile Bootblock
|
|
Write-Host "Compiling Bootblock..."
|
|
& $vasm -Fbin -o $bootBin $bootSrc
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Error "Bootblock compilation failed!"
|
|
exit 1
|
|
}
|
|
|
|
# 2. Compile Game
|
|
Write-Host "Compiling Game..."
|
|
& $vasm -Fbin -o $gameBin $gameSrc
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Error "Game compilation failed!"
|
|
exit 1
|
|
}
|
|
|
|
# 3. Create ADF
|
|
Write-Host "Creating ADF..."
|
|
.\make_adf.ps1
|