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

Commit 0a45251c authored by Alexandre Roux's avatar Alexandre Roux
Browse files

copy intermediate system.img when system.img isn't in product folder

parent d13a6280
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -233,6 +233,9 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then

        if [ "$BACKUP_IMG" = true ]; then
          find . -maxdepth 1 -name '*.img' -type f -exec zip "$ZIP_DIR/$zipsubdir/IMG-$build" {} \;
          if [ ! -f "system.img" ]; then
            zip "$ZIP_DIR/$zipsubdir/IMG-$build" obj/PACKAGING/systemimage_intermediates/system.img
          fi
          cd $ZIP_DIR/$zipsubdir
          sha256sum "IMG-$build" > "IMG-$build.sha256sum"
          md5sum "IMG-$build" > "IMG-$build.md5sum"