LuK1337 4 сар өмнө
parent
commit
e9be20e1ef
1 өөрчлөгдсөн 10 нэмэгдсэн , 10 устгасан
  1. 10 10
      build/gapps.sh

+ 10 - 10
build/gapps.sh

@@ -89,16 +89,16 @@ function zipit() {
     fi
 }
 
-function getmd5() {
-    if [ -x $(which md5sum) ]; then
-        echo "md5sum is installed, getting md5..." >> $GLOG
-        echo "Getting md5sum..."
-        GMD5=$(md5sum $OUT/$BUILDZIP)
-        echo -e "$GMD5" > $OUT/$BUILDZIP.md5sum
-        echo "md5 exported at $OUT/$BUILDZIP.md5sum"
+function getsha256() {
+    if [ -x $(which sha256sum) ]; then
+        echo "sha256sum is installed, getting sha256..." >> $GLOG
+        echo "Getting sha256sum..."
+        GSHA256=$(sha256sum $OUT/$BUILDZIP)
+        echo -e "$GSHA256" > $OUT/$BUILDZIP.sha256sum
+        echo "sha256 exported at $OUT/$BUILDZIP.sha256sum"
         return 0
     else
-        echo "md5sum is not installed, aborting" >> $GLOG
+        echo "sha256sum is not installed, aborting" >> $GLOG
         return 1
     fi
 }
@@ -113,7 +113,7 @@ else
     echo "No realpath found!" >> $GLOG
 fi
 
-for func in create zipit getmd5 clean; do
+for func in create zipit getsha256 clean; do
     $func
     ret=$?
     if [ "$ret" == 0 ]; then
@@ -124,5 +124,5 @@ for func in create zipit getmd5 clean; do
 done
 
 echo "Done!" >> $GLOG
-echo "Build completed: $GMD5"
+echo "Build completed: $GSHA256"
 exit 0