Skip to content

Commit

Permalink
更新 build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
YumeYuka authored Jan 23, 2025
1 parent b5a571b commit 95e413e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ done

rm -f "$targetRoot/hashList.dat"
for file in $(find "$targetRoot/" -type f -not -path "*META-INF*"); do
echo "$(sha1sum "${file}" | awk '{print $1}') ${file#$targetRoot/}" >> "$targetRoot/hashList.txt"
echo "$(sha1sum "${file}" | awk '{print $1}') ${file#$targetRoot/}" >> "$targetRoot/hashList.txt"
done
truncate -s $(($(stat -c %s "$targetRoot/hashList.txt") - 1)) "$targetRoot/hashList.txt"
cat "$targetRoot/hashList.txt" | gzip -c9 > "$targetRoot/hashList.dat"
cat "$targetRoot/hashList.txt" | base64 -w 0 | gzip -c9 > "$targetRoot/hashList.dat"
rm -f "$targetRoot/hashList.txt"

cd "$targetRoot/"
Expand Down

0 comments on commit 95e413e

Please sign in to comment.