From 2d6899f58fc668a773db2dcf99fe7dce195420c6 Mon Sep 17 00:00:00 2001 From: Horror Proton <107091537+horror-proton@users.noreply.github.com> Date: Sat, 29 Oct 2022 11:28:55 +0800 Subject: [PATCH] chore: update OTA filenames, etc --- .github/workflows/release-ota.yml | 2 +- tools/OTAPacker/build.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-ota.yml b/.github/workflows/release-ota.yml index f7182bcdf8..6c96932645 100644 --- a/.github/workflows/release-ota.yml +++ b/.github/workflows/release-ota.yml @@ -8,7 +8,7 @@ on: limit: description: 'Number of releases to fetch, 2 at least' required: false - default: 21 + default: 51 type: number jobs: diff --git a/tools/OTAPacker/build.sh b/tools/OTAPacker/build.sh index c6fe650717..e71d9c7940 100755 --- a/tools/OTAPacker/build.sh +++ b/tools/OTAPacker/build.sh @@ -31,23 +31,23 @@ while read tag; do if [[ "$tag" == "$latest_tag" ]]; then cd "$latest_tag"/content/ - find -type f -exec md5sum '{}' \; > ../../md5sum.txt + find * -type f -exec md5sum '{}' \; > ../md5sum.txt cd $working_dir else - echo "comparing files $tag...$latest_tag" + echo "Comparing files $tag...$latest_tag" rsync -ancv --delete --info=FLIST0 "$latest_tag"/content/ "$tag"/content/ \ | grep -v '/$' \ | head -n -3 \ | tee "$tag"/files.txt - echo "installing files" + echo "Installing files" mkdir -pv "$tag"/pkg - install -DCv md5sum.txt "$tag"/pkg + install -DCv "$latest_tag"/md5sum.txt "$tag"/pkg while read file; do if [[ $file == "deleting "* ]]; then - echo ${file#"deleting "} >> "$tag"/pkg/deleted.txt + echo ${file#"deleting "} >> "$tag"/pkg/removelist.txt else install -DCv "$latest_tag"/content/"$file" "$tag"/pkg/"$file" fi @@ -55,7 +55,7 @@ while read tag; do echo "Creating zip archive" cd "$tag"/pkg - zip -q -9 -r "$working_dir"/"${tag}_${latest_tag}.zip" . + zip -q -9 -r "$working_dir"/"MAAComponent-OTA-${tag}_${latest_tag}-win-x64.zip" . cd $working_dir fi done < ./releases