From 4176346648ec1af491962552b9cd236cb271128c Mon Sep 17 00:00:00 2001 From: Nicola Corna Date: Tue, 7 Nov 2017 07:07:49 +0100 Subject: [PATCH] Add SHA256 sum --- src/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index 3c2233f..92d9d7f 100755 --- a/src/build.sh +++ b/src/build.sh @@ -188,8 +188,12 @@ if ! [ -z "$DEVICE_LIST" ]; then fi # Move produced ZIP files to the main OUT directory echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR/$zipsubdir'" | tee -a $DEBUG_LOG + cd $SRC_DIR/out/target/product/$codename + for build in lineage-*.zip; do + sha256sum $build > $ZIP_DIR/$zipsubdir/$build.sha256sum + done + find . -name 'lineage-*.zip*' -type f -maxdepth 1 -exec mv {} $ZIP_DIR/$zipsubdir/ \; >> $DEBUG_LOG 2>&1 cd $SRC_DIR - find out/target/product/$codename -name 'lineage-*.zip*' -type f -maxdepth 1 -exec mv {} $ZIP_DIR/$zipsubdir/ \; >> $DEBUG_LOG 2>&1 else echo ">> [$(date)] Failed build for $codename" | tee -a $DEBUG_LOG fi