diff --git a/tools/OTAPacker/ziplist.sh b/tools/OTAPacker/ziplist.sh index a6893f8f6d..c984646d50 100755 --- a/tools/OTAPacker/ziplist.sh +++ b/tools/OTAPacker/ziplist.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -zipinfo -O GB2312 -v $1 \ +zipinfo -O utf8 -v $1 \ | sed -n -e '/^Central directory entry/,+3p' -e '/32-bit CRC value (hex):/p' | grep '^ ' \ | sed -e 's/^ //g' | sed -z 's/\n32-bit CRC value (hex):\s*/\t/g' \ | awk '{last = $NF; $NF=""; print last,$0}' diff --git a/tools/OTAPacker/zipota.sh b/tools/OTAPacker/zipota.sh index 14ce0f09cf..9e37e1cb81 100755 --- a/tools/OTAPacker/zipota.sh +++ b/tools/OTAPacker/zipota.sh @@ -25,6 +25,6 @@ tmpdir=$(mktemp -d /tmp/zipota-files.XXX) comm -23 <(echo "$from_fn") <(echo "$to_fn") > "$tmpdir"/removelist.txt echo "$to_fn" > "$tmpdir"/filelist.txt -zip -r -j "$out_zip" "$tmpdir"/removelist.txt "$tmpdir"/filelist.txt +zip -X -r -j "$out_zip" "$tmpdir"/removelist.txt "$tmpdir"/filelist.txt rm -rf $tmpdir