From dc44d4d1ff1fd67e586f4640efaca39c2dc374a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Jul 2026 16:49:53 +0000 Subject: [PATCH 1/4] dietpi-software: support dated BirdNET nightly tarballs --- .github/workflows/update_urls.bash | 4 ++-- CHANGELOG.txt | 1 + dietpi/dietpi-software | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_urls.bash b/.github/workflows/update_urls.bash index 38bc73608d..e36e291245 100644 --- a/.github/workflows/update_urls.bash +++ b/.github/workflows/update_urls.bash @@ -159,10 +159,10 @@ software_id=124 # BirdNET-Go software_id=127 aURL[$software_id]='https://api.github.com/repos/tphakala/birdnet-go/releases' -aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch\.tar\.gz(?=\")" | head -1' +aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch(?:-[0-9]{8})?\.tar\.gz(?=\")" | head -1' aARCH[$software_id]='arm64 amd64' aARCH_CHECK[$software_id]='riscv64' -aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch\.tar\.gz' +aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch(-[0-9]{8})?\.tar\.gz' # YaCy software_id=133 diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 50372cd53a..285250ab00 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -10,6 +10,7 @@ Bug fixes: - Odroid N2/HC4 | Support for petitboot has been fixed. Changes in our base boot script caused some petitboot workarounds to not be applied as intended. Many thanks to @vlix and @tigersky for reporting this issue: https://dietpi.com/forum/t/24902, https://dietpi.com/forum/t/25296 - DietPi-Config | Resolved an issue where scanning for WiFi networks could result in an empty list, if a single hidden network (with an empty SSID) was in range. Many thanks to @miraz1300 for reporting this issue: https://github.com/MichaIng/DietPi/issues/8199 - DietPi-Software | Immich: Resolved an issue where the installation failed due to breaking changes in the recent Immich v3 release. Our code has been updated to support Immich v3. As always, existing instances can apply the update via "dietpi-software reinstall 215 216", which includes Immich Machine Learning, (only) if installed. +- DietPi-Software | BirdNET-Go: Resolved an issue where the installer did not detect newly dated nightly release archives (e.g. "-20260712" suffix), causing downloads to fail. As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 29f1f031e1..e7e3de08d9 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -12388,7 +12388,7 @@ _EOF_ # Download local fallback_url="https://github.com/tphakala/birdnet-go/releases/download/nightly-20260601/birdnet-go-linux-$arch.tar.gz" - Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch\.tar\.gz(?=\")" | head -1)" birdnet + Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch(?:-[0-9]{8})?\.tar\.gz(?=\")" | head -1)" birdnet # Change rpath for birdnet-go to make use of libtensorflowlite_c.so in its own dir G_EXEC patchelf --set-rpath "$bnet_inst" birdnet/birdnet-go From 377ba653860013b971e4f30a69114ab172b01538 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Wed, 15 Jul 2026 18:28:28 +0200 Subject: [PATCH 2/4] dietpi-software: BirdNET-Go: hardcode date suffix and fix changelog Let's assume this suffix will remain. And the bug did not cause the download to fail, but an older nightly was downloaded instead. --- .github/workflows/update_urls.bash | 4 ++-- CHANGELOG.txt | 2 +- dietpi/dietpi-software | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update_urls.bash b/.github/workflows/update_urls.bash index e36e291245..78ef733f76 100644 --- a/.github/workflows/update_urls.bash +++ b/.github/workflows/update_urls.bash @@ -159,10 +159,10 @@ software_id=124 # BirdNET-Go software_id=127 aURL[$software_id]='https://api.github.com/repos/tphakala/birdnet-go/releases' -aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch(?:-[0-9]{8})?\.tar\.gz(?=\")" | head -1' +aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")" | head -1' aARCH[$software_id]='arm64 amd64' aARCH_CHECK[$software_id]='riscv64' -aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch(-[0-9]{8})?\.tar\.gz' +aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch-[0-9]{8}\.tar\.gz' # YaCy software_id=133 diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 285250ab00..d148be78f1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -10,7 +10,7 @@ Bug fixes: - Odroid N2/HC4 | Support for petitboot has been fixed. Changes in our base boot script caused some petitboot workarounds to not be applied as intended. Many thanks to @vlix and @tigersky for reporting this issue: https://dietpi.com/forum/t/24902, https://dietpi.com/forum/t/25296 - DietPi-Config | Resolved an issue where scanning for WiFi networks could result in an empty list, if a single hidden network (with an empty SSID) was in range. Many thanks to @miraz1300 for reporting this issue: https://github.com/MichaIng/DietPi/issues/8199 - DietPi-Software | Immich: Resolved an issue where the installation failed due to breaking changes in the recent Immich v3 release. Our code has been updated to support Immich v3. As always, existing instances can apply the update via "dietpi-software reinstall 215 216", which includes Immich Machine Learning, (only) if installed. -- DietPi-Software | BirdNET-Go: Resolved an issue where the installer did not detect newly dated nightly release archives (e.g. "-20260712" suffix), causing downloads to fail. +- DietPi-Software | BirdNET-Go: Resolved an issue where the installer did not detect recent nightly releases, since the URLs got an additional date suffix. Many thanks to @oradke for reporting this issue: https://github.com/MichaIng/DietPi/discussions/8215 As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index e7e3de08d9..b3c61b3dc1 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -12387,8 +12387,8 @@ _EOF_ esac # Download - local fallback_url="https://github.com/tphakala/birdnet-go/releases/download/nightly-20260601/birdnet-go-linux-$arch.tar.gz" - Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch(?:-[0-9]{8})?\.tar\.gz(?=\")" | head -1)" birdnet + local fallback_url="https://github.com/tphakala/birdnet-go/releases/download/20260713/birdnet-go-linux-$arch-20260713.tar.gz" + Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")" | head -1)" birdnet # Change rpath for birdnet-go to make use of libtensorflowlite_c.so in its own dir G_EXEC patchelf --set-rpath "$bnet_inst" birdnet/birdnet-go From 8eb9113cb9fa993e633d51dc818a675c7a6755ae Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 21 Jul 2026 20:14:10 +0200 Subject: [PATCH 3/4] dietpi-software: BirdNET-Go: switch to stable releases --- .github/workflows/update_urls.bash | 4 ++-- dietpi/dietpi-software | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_urls.bash b/.github/workflows/update_urls.bash index 78ef733f76..9c140b6dff 100644 --- a/.github/workflows/update_urls.bash +++ b/.github/workflows/update_urls.bash @@ -158,8 +158,8 @@ software_id=124 # BirdNET-Go software_id=127 -aURL[$software_id]='https://api.github.com/repos/tphakala/birdnet-go/releases' -aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")" | head -1' +aURL[$software_id]='https://api.github.com/repos/tphakala/birdnet-go/releases/latest' +aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")"' aARCH[$software_id]='arm64 amd64' aARCH_CHECK[$software_id]='riscv64' aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch-[0-9]{8}\.tar\.gz' diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index b3c61b3dc1..90e1c91eea 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -12388,7 +12388,7 @@ _EOF_ # Download local fallback_url="https://github.com/tphakala/birdnet-go/releases/download/20260713/birdnet-go-linux-$arch-20260713.tar.gz" - Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")" | head -1)" birdnet + Download_Install "$(curl -sSfL 'https://api.github.com/repos/tphakala/birdnet-go/releases/latest' | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch-[0-9]{8}\.tar\.gz(?=\")")" birdnet # Change rpath for birdnet-go to make use of libtensorflowlite_c.so in its own dir G_EXEC patchelf --set-rpath "$bnet_inst" birdnet/birdnet-go From d460eb803e643c56026277c094b43ade4ec2cb99 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 21 Jul 2026 20:15:07 +0200 Subject: [PATCH 4/4] changelog: adjust entry --- CHANGELOG.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d148be78f1..34fc41be27 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -10,7 +10,7 @@ Bug fixes: - Odroid N2/HC4 | Support for petitboot has been fixed. Changes in our base boot script caused some petitboot workarounds to not be applied as intended. Many thanks to @vlix and @tigersky for reporting this issue: https://dietpi.com/forum/t/24902, https://dietpi.com/forum/t/25296 - DietPi-Config | Resolved an issue where scanning for WiFi networks could result in an empty list, if a single hidden network (with an empty SSID) was in range. Many thanks to @miraz1300 for reporting this issue: https://github.com/MichaIng/DietPi/issues/8199 - DietPi-Software | Immich: Resolved an issue where the installation failed due to breaking changes in the recent Immich v3 release. Our code has been updated to support Immich v3. As always, existing instances can apply the update via "dietpi-software reinstall 215 216", which includes Immich Machine Learning, (only) if installed. -- DietPi-Software | BirdNET-Go: Resolved an issue where the installer did not detect recent nightly releases, since the URLs got an additional date suffix. Many thanks to @oradke for reporting this issue: https://github.com/MichaIng/DietPi/discussions/8215 +- DietPi-Software | BirdNET-Go: Resolved an issue where the installer did not detect recent releases, since the URLs got an additional date suffix. Many thanks to @oradke for reporting this issue: https://github.com/MichaIng/DietPi/discussions/8215 As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX