Add release build script (#169)

* Add release build script

* Add EEPROM image to release
This commit is contained in:
Terence Boldt 2024-05-30 08:48:01 -04:00 committed by GitHub
parent 8b04a0e926
commit 2a35501ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 30 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ RaspberryPiPico/elf2uf2/
RaspberryPiPico/generated/
RaspberryPiPico/pico-sdk/
RaspberryPiPico/pioasm/
release

View File

@ -1,5 +1,10 @@
#!/bin/sh
HW_TYPE=${1-0}
if [ "$1" = '1' ]; then
echo Assembling for Pico based hardware
else
echo Assembling for Classic hardware
fi
ca65 DriveFirmware.asm -D HW_TYPE=$HW_TYPE -D SLOT=0 -o DriveSlot0.o || exit 1
ca65 DriveFirmware.asm -D HW_TYPE=$HW_TYPE -D SLOT=1 -o DriveSlot1.o || exit 1

View File

@ -1,4 +1,10 @@
#!/bin/sh
HW_TYPE=${1-0}
if [ "$1" = '1' ]; then
echo Setting up for Pico based hardware
else
echo Setting up for Classic hardware
fi
sudo apt update
sudo apt install git -y

18
generaterelease.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
mkdir release
cd Apple2
. assemble.sh 1
cd ../RaspberryPiPico
. build.sh
cp Apple2-IO-RPi.elf ../release
cd ../RaspberryPi/driveimage
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.pico.hardware.hdv -c create -v APPLE2.IO.RPI
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.pico.hardware.hdv -c putall
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.pico.hardware.hdv -c ls
cd ../../Apple2
. assemble.sh 0
cd ../RaspberryPi/driveimage
cp AT28C64B.bin ../../release
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.classic.hardware.hdv -c create -v APPLE2.IO.RPI
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.classic.hardware.hdv -c putall
../../.cicd/ProDOS-Utilities -d ../../release/Apple2-IO-RPi.classic.hardware.hdv -c ls