From 29049c52b682f1add0937c2e301d99721ede0438 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Wed, 13 Mar 2024 08:21:02 +0000 Subject: [PATCH] Fix the posix spwan error - make the 'otapackage` target instead of bacon - rename the ROM zip file from "lineage_$codename-ota-eng.root.zip" to the expected "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip" --- src/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index 42812a0..743bf94 100755 --- a/src/build.sh +++ b/src/build.sh @@ -377,11 +377,16 @@ for branch in ${BRANCH_NAME//,/ }; do # Start the build echo ">> [$(date)] Starting build for $codename, $branch branch" | tee -a "$DEBUG_LOG" build_successful=false - if (set +eu ; mka "${jobs_arg[@]}" bacon) &>> "$DEBUG_LOG"; then + if (set +eu ; mka "${jobs_arg[@]}" otapackage ) &>> "$DEBUG_LOG"; then # Move produced ZIP files to the main OUT directory echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR/$zipsubdir'" | tee -a "$DEBUG_LOG" cd out/target/product/"$codename" + + # the zip produced by 'mka otapackage' is "lineage_$device-ota-eng.root.zip + # we need it to be "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip" + mv "lineage_$codename-ota-eng.root.zip" "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip" + files_to_hash=() for build in lineage-*.zip; do cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"