From 2a35501ed74cacbe237e03eb4a25ef7b6ff7fbf3 Mon Sep 17 00:00:00 2001 From: Terence Boldt Date: Thu, 30 May 2024 08:48:01 -0400 Subject: [PATCH] Add release build script (#169) * Add release build script * Add EEPROM image to release --- .gitignore | 1 + Apple2/assemble.sh | 5 +++++ RaspberryPi/setup.sh | 6 ++++++ generaterelease.sh | 18 ++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100755 generaterelease.sh diff --git a/.gitignore b/.gitignore index ece671c..783e554 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ RaspberryPiPico/elf2uf2/ RaspberryPiPico/generated/ RaspberryPiPico/pico-sdk/ RaspberryPiPico/pioasm/ +release diff --git a/Apple2/assemble.sh b/Apple2/assemble.sh index 685aa85..4e2930c 100755 --- a/Apple2/assemble.sh +++ b/Apple2/assemble.sh @@ -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 diff --git a/RaspberryPi/setup.sh b/RaspberryPi/setup.sh index 9e0e960..51de4f8 100644 --- a/RaspberryPi/setup.sh +++ b/RaspberryPi/setup.sh @@ -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 diff --git a/generaterelease.sh b/generaterelease.sh new file mode 100755 index 0000000..9542807 --- /dev/null +++ b/generaterelease.sh @@ -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