Stefan Agner 3df2749171
Adjust Home Assistant OS versioning to prepare for new release strategy (#2767)
* Adjust Home Assistant versioning to prepare for new release strategy

With OS 11 we'll create rc pre-releases which will get directly pushed
to the beta channel. In contrast, release builds will get directly
pushed to the stable channel.

Similar to Home Assistant Core we'll create bump commits for all stable
and beta releases. This makes sure that the source code matches the
built binaries for all releases.

The development build will get a generated version. To avoid issues
with the new rc builds the dev build version will get injected on source
level now.

* Apply suggestions from code review
2023-09-25 13:41:50 +02:00

47 lines
878 B
Bash
Executable File

#!/bin/bash
function hassos_image_name() {
echo "${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-$(hassos_version).${1}"
}
function hassos_rauc_compatible() {
echo "${HASSOS_ID}-${BOARD_ID}"
}
function hassos_version() {
if [ -z "${VERSION_SUFFIX}" ]; then
echo "${VERSION_MAJOR}.${VERSION_MINOR}"
else
echo "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUFFIX}"
fi
}
function path_spl_img() {
echo "${BINARIES_DIR}/spl.img"
}
function path_kernel_img() {
echo "${BINARIES_DIR}/kernel.img"
}
function path_boot_img() {
echo "${BINARIES_DIR}/boot.vfat"
}
function path_boot_dir() {
echo "${BINARIES_DIR}/boot"
}
function path_data_img() {
echo "${BINARIES_DIR}/data.ext4"
}
function path_overlay_img() {
echo "${BINARIES_DIR}/overlay.ext4"
}
function path_rootfs_img() {
echo "${BINARIES_DIR}/rootfs.squashfs"
}