Skip to content

Commit

Permalink
rename image outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Feb 6, 2024
1 parent 734dc83 commit e06f50b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ echo_process "This script will build the openHABian image file."

# Identify hardware platform
if [ "$1" == "rpi" ]; then
hwPlatform="pi-raspios32"
hwPlatform="raspios32"
echo_process "Hardware platform: Raspberry Pi (rpi)"

elif [ "$1" == "rpi64" ]; then
hwPlatform="pi-raspios64"
hwPlatform="raspios64"
echo_process "Hardware platform: Raspberry Pi (rpi64)"

elif [ "$1" == "local-test" ]; then
Expand Down Expand Up @@ -252,8 +252,8 @@ extraSize="1000" # grow image root by this number of MB


# Build Raspberry Pi image
if [[ $hwPlatform == "pi-raspios32" ]] || [[ $hwPlatform == "pi-raspios64" ]]; then
if [ "$hwPlatform" == "pi-raspios64" ]; then
if [[ $hwPlatform == "raspios32" ]] || [[ $hwPlatform == "raspios64" ]]; then
if [ "$hwPlatform" == "raspios64" ]; then
baseURL="https://downloads.raspberrypi.org/raspios_${getstable}lite_arm64_latest"
bits="64"
else
Expand Down Expand Up @@ -388,7 +388,7 @@ fi
echo_process "Moving image and cleaning up... "
shorthash="$(git log --pretty=format:'%h' -n 1)"
crc32checksum="$(crc32 "$imageFile")"
destination="openhabian-${hwPlatform}-${timestamp}-git${shorthash}-crc${crc32checksum}.img"
destination="openhabian-${hwPlatform}-${2:-latest}-${timestamp}-crc${crc32checksum}.img"
mv -v "$imageFile" "$destination"
rm -rf "$buildFolder"

Expand Down

0 comments on commit e06f50b

Please sign in to comment.