1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Fix building of _img.zip file

Fixes #620
This commit is contained in:
Pete Fotheringham 2024-05-22 22:55:28 +01:00 committed by GitHub
parent 1e77ea4247
commit 9769fc364a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -486,13 +486,18 @@ for branch in ${BRANCH_NAME//,/ }; do
if [ "$MAKE_IMG_ZIP_FILE" = true ]; then
# make the `-img.zip` file
echo ">> [$(date)] Making -img.zip file" | tee -a "$DEBUG_LOG"
infile="out/target/product/$codename/obj/PACKAGING/target_files_intermediates/lineage_$codename-target_files-eng.root.zip"
img_zip_file="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-img.zip"
img_from_target_files "$infile" "$img_zip_file" &>> "$DEBUG_LOG"
# move it to the zips directory
mv "$img_zip_file" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG"
files_to_hash+=( "$img_zip_file" )
infile=$(find "$source_dir" -name "lineage_$codename-target_files*.zip")
if [ -z "$infile" ]; then
echo ">> [$(date)] $infile does not exist" | tee -a "$DEBUG_LOG"
else
img_zip_file="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-img.zip"
img_from_target_files "$infile" "$img_zip_file" &>> "$DEBUG_LOG"
# move img_zip_file to the zips directory
mv "$img_zip_file" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG"
files_to_hash+=( "$img_zip_file" )
fi
else
echo ">> [$(date)] Making -img.zip file disabled"
fi