Skip to content

Commit dc44d4d

Browse files
authored
dietpi-software: support dated BirdNET nightly tarballs
1 parent e6757ef commit dc44d4d

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/update_urls.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ software_id=124
159159
# BirdNET-Go
160160
software_id=127
161161
aURL[$software_id]='https://api.github.com/repos/tphakala/birdnet-go/releases'
162-
aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch\.tar\.gz(?=\")" | head -1'
162+
aCHECK[$software_id]='echo "$response" | grep -Po "\"browser_download_url\": *\"\K[^\"]*-linux-$arch(?:-[0-9]{8})?\.tar\.gz(?=\")" | head -1'
163163
aARCH[$software_id]='arm64 amd64'
164164
aARCH_CHECK[$software_id]='riscv64'
165-
aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch\.tar\.gz'
165+
aREGEX[$software_id]='https://github.com/tphakala/birdnet-go/releases/download/.*-linux-\$arch(-[0-9]{8})?\.tar\.gz'
166166

167167
# YaCy
168168
software_id=133

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Bug fixes:
1010
- 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
1111
- 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
1212
- 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.
13+
- 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.
1314

1415
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
1516

dietpi/dietpi-software

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12388,7 +12388,7 @@ _EOF_
1238812388

1238912389
# Download
1239012390
local fallback_url="https://github.com/tphakala/birdnet-go/releases/download/nightly-20260601/birdnet-go-linux-$arch.tar.gz"
12391-
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
12391+
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
1239212392

1239312393
# Change rpath for birdnet-go to make use of libtensorflowlite_c.so in its own dir
1239412394
G_EXEC patchelf --set-rpath "$bnet_inst" birdnet/birdnet-go

0 commit comments

Comments
 (0)