Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b4609b5 authored by Alexandre Roux's avatar Alexandre Roux Committed by Romain Hunault
Browse files

Backup system img when building GSI OTA

parent 2f66485a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -99,6 +99,9 @@ ENV MINIMAL_APPS false
# Force an eng build even when device name doesn't contain -eng
# Force an eng build even when device name doesn't contain -eng
ENV ENG_BUILD false
ENV ENG_BUILD false


#Save intermediate system.img even when not in out folder
ENV BACKUP_INTERMEDIATE_SYSTEM_IMG false



# You can optionally specify a USERSCRIPTS_DIR volume containing these scripts:
# You can optionally specify a USERSCRIPTS_DIR volume containing these scripts:
#  * begin.sh, run at the very beginning
#  * begin.sh, run at the very beginning
+7 −0
Original line number Original line Diff line number Diff line
@@ -222,6 +222,13 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
          md5sum "IMG-$build" > "IMG-$build.md5sum"
          md5sum "IMG-$build" > "IMG-$build.md5sum"
          cd "$source_dir/out/target/product/${DEVICE}" || return 1
          cd "$source_dir/out/target/product/${DEVICE}" || return 1
        fi
        fi
        if [ "$BACKUP_INTERMEDIATE_SYSTEM_IMG" = true ]; then
          mv obj/PACKAGING/target_files_intermediates/lineage*/IMAGES/system.img ./
          zip "$ZIP_DIR/$zipsubdir/SYSTEM-$build" system.img
          cd $ZIP_DIR/$zipsubdir
          sha256sum "SYSTEM-$build" > "SYSTEM-$build.sha256sum"
          md5sum "SYSTEM-$build" > "SYSTEM-$build.md5sum"
        fi


	if [ "$RECOVERY_IMG" = true ]; then
	if [ "$RECOVERY_IMG" = true ]; then
	  if [ -f "recovery.img" ]; then
	  if [ -f "recovery.img" ]; then