Skip to content

Commit

Permalink
Don't copy the individual '.img' files
Browse files Browse the repository at this point in the history
  • Loading branch information
petefoth committed Sep 19, 2023
1 parent c90de6c commit 7c21b55
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,6 @@ for branch in ${BRANCH_NAME//,/ }; do
files_to_hash+=( "$build" )
done

cd "$source_dir/out/target/product/$codename/obj/PACKAGING/target_files_intermediates/lineage_$codename-target_files-eng.root/IMAGES/"
for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot; do
if [ -f "$image.img" ]; then
recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-$image.img"
echo ">> [$(date)] Copying $image.img" to "$ZIP_DIR/$zipsubdir/$recovery_name" >> "$DEBUG_LOG"
cp "$image.img" "$ZIP_DIR/$zipsubdir/$recovery_name" &>> "$DEBUG_LOG"
files_to_hash+=( "$recovery_name" )
fi
done
cd "$ZIP_DIR/$zipsubdir"
for f in "${files_to_hash[@]}"; do
sha256sum "$f" > "$ZIP_DIR/$zipsubdir/$f.sha256sum"
Expand Down

0 comments on commit 7c21b55

Please sign in to comment.