Fix script and firmware files

This commit is contained in:
Djuri Baars 2024-11-28 18:53:20 +01:00
parent d7c9b22b81
commit 5f9958cb6e
7 changed files with 7 additions and 7 deletions

View file

@ -1 +1 @@
50d287c2ecb1bd67aa5c1f3059ec3f4fba246ba73f302c6a29eb1e299b1040c5 045db4c8812c3db7d0af8f416cd9d3e94405040538c63facc2ccb5baa061d85c

View file

@ -1 +1 @@
50d287c2ecb1bd67aa5c1f3059ec3f4fba246ba73f302c6a29eb1e299b1040c5 045db4c8812c3db7d0af8f416cd9d3e94405040538c63facc2ccb5baa061d85c

View file

@ -1 +1 @@
50d287c2ecb1bd67aa5c1f3059ec3f4fba246ba73f302c6a29eb1e299b1040c5 045db4c8812c3db7d0af8f416cd9d3e94405040538c63facc2ccb5baa061d85c

View file

@ -18,9 +18,9 @@ echo $tag_name > firmware_v3/tag.txt
littlefs_url=$(echo $release_data | jq -r '.assets[] | select(.name=="littlefs.bin") | .browser_download_url') littlefs_url=$(echo $release_data | jq -r '.assets[] | select(.name=="littlefs.bin") | .browser_download_url')
littlefs_sha_url=$(echo $release_data | jq -r '.assets[] | select(.name=="littlefs.bin.sha256") | .browser_download_url') littlefs_sha_url=$(echo $release_data | jq -r '.assets[] | select(.name=="littlefs.bin.sha256") | .browser_download_url')
for dir in firmware_v3/build-btclock_rev_b_213epd firmware_v3/build-lolin_s3_mini_29epd firmware_v3/build-lolin_s3_mini_213epd; do for dir in firmware_v3/build-btclock_rev_b-213epd firmware_v3/build-lolin_s3_mini-29epd firmware_v3/build-lolin_s3_mini-213epd; do
curl -sL $littlefs_url -o "$dir/littlefs.bin" curl -sSL $littlefs_url -o "$dir/littlefs.bin"
curl -sL $littlefs_sha_url -o "$dir/littlefs.bin.sha256" curl -sSL $littlefs_sha_url -o "$dir/littlefs.bin.sha256"
done done
# Function to download and distribute board-specific files # Function to download and distribute board-specific files
@ -32,7 +32,7 @@ download_board_files() {
for file in "${files[@]}"; do for file in "${files[@]}"; do
url=$(echo $release_data | jq -r ".assets[] | select(.name==\"$file\") | .browser_download_url") url=$(echo $release_data | jq -r ".assets[] | select(.name==\"$file\") | .browser_download_url")
echo "Downloading $url to $dir/$file" echo "Downloading $url to $dir/$file"
curl -sL -o "$dir/$file" $url curl -sSL -o "$dir/$file" $url
done done
} }