Derive output filename from build system LINEAGE_VERSION
Use build/soong/bin/get_build_var LINEAGE_VERSION to query the build system for the version string, producing filenames like lineage-23.2-20260711-UNOFFICIAL-orangepi5ultra.img. Removes fragile zip-parsing and hardcoded fallback. Fails cleanly if LINEAGE_VERSION cannot be resolved. Copyright (C) 2026 Brendan Szymanski <hello@bscubed.dev>
This commit is contained in:
parent
0828852ffe
commit
548445f2ae
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ if [ ! -f "${UBOOT_BIN}" ]; then
|
|||
exit_with_error "Missing U-Boot: ${UBOOT_BIN}"
|
||||
fi
|
||||
|
||||
: "${LINEAGE_VERSION:?LINEAGE_VERSION environment variable is not set. Run lunch first.}"
|
||||
LINEAGE_VERSION=$(build/soong/bin/get_build_var LINEAGE_VERSION)
|
||||
if [ -z "${LINEAGE_VERSION}" ]; then
|
||||
exit_with_error "LINEAGE_VERSION is empty. Run 'lunch' first and ensure the build environment is configured."
|
||||
fi
|
||||
IMGSIZE=19456MiB
|
||||
IMAGE_PATH="${ANDROID_PRODUCT_OUT}/lineage-${LINEAGE_VERSION}.img"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue