[arm64] Port scripts between thingsboard & wanderer to support arm64 (#15286)

This commit is contained in:
Sam Heinz
2026-06-22 21:27:16 +10:00
committed by GitHub
parent ca6eacdd92
commit c218deddd1
42 changed files with 57 additions and 51 deletions
+3 -2
View File
@@ -50,10 +50,11 @@ if ! curl -fsSL "$API_URL" -o "$TEMP_JSON"; then
msg_error "Failed to fetch data from Ubiquiti API"
exit 250
fi
LATEST=$(jq -r '
PLATFORM="linux-$(arch_resolve "x64" "arm64")"
LATEST=$(jq -r --arg platform "$PLATFORM" '
._embedded.firmware
| map(select(.product == "unifi-os-server"))
| map(select(.platform == "linux-x64"))
| map(select(.platform == $platform))
| sort_by(.version_major, .version_minor, .version_patch)
| last
' "$TEMP_JSON")