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

Commit 652ce5ac authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

Backup .img

parent bb04cdc3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -79,6 +79,9 @@ ENV ZIP_SUBDIR true
# Write the verbose logs to $LOGS_DIR/$codename instead of $LOGS_DIR/
ENV LOGS_SUBDIR true

# Backup the .img in addition to zips
ENV BACKUP_IMG false

# Generate delta files
ENV BUILD_DELTA false

+5 −0
Original line number Diff line number Diff line
@@ -223,6 +223,11 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then
        sha256sum "$build" > "$ZIP_DIR/$zipsubdir/$build.sha256sum"
      done
      find . -maxdepth 1 -name 'e-*.zip*' -type f -exec mv {} "$ZIP_DIR/$zipsubdir/" \;

      if [ "$BACKUP_IMG" = true ]; then
        find . -maxdepth 1 -name '*.img' -type f -exec cp {} "$ZIP_DIR/$zipsubdir/" \;
      fi

      cd "$source_dir"
      build_successful=true
    else