Files
MeWeb/.gitea/scripts/wait-knowledge.sh
T
thepraandClaude Opus 5.5 6209c7f2e1
Build / Desktop, server and tools (push) Successful in 1m10s
Release / Every platform, the server, the release (push) Successful in 29m11s
me-web? 0.15.0: address blocks from Asia, Africa and Latin America too
- The provider card now names the address block your connection belongs to in Asia and the Pacific, in Africa, and
  in Latin America and the Caribbean, not only in Europe and the Middle East. The blocks come from the address
  registries APNIC, AFRINIC and LACNIC, used with their permission, and travel inside the app, so this works
  without a connection too.
- In Latin America and the Caribbean the registry gives no names for its blocks, so the card says how the block was
  handed out instead, for example "passed on by the provider to one of its customers".
- The app is about 6 MB larger, because it carries these blocks.
- The app's name no longer has quotation marks where it stands on its own: the window title, the name under the
  icon, the version line and the website's titles. Inside a sentence it keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 22:32:49 +01:00

18 lines
661 B
Bash
Executable File

#!/bin/sh
set -eu
manifest=http://127.0.0.1:5480/api/knowledge
for attempt in $(seq 1 240); do
body=$(curl -fsS "$manifest" 2>/dev/null || true)
missing=""
for file in ip2asn.bin networks.bin carriers.json registry.bin; do
case "$body" in *"\"$file\""*) ;; *) missing="$missing $file" ;; esac
done
case "$body" in *'"format":3,'*) ;; *) missing="$missing format-3" ;; esac
if [ -n "$body" ] && [ -z "$missing" ]; then
echo "network data ready: $(printf '%s' "$body" | head -c 200)"
exit 0
fi
sleep 10
done
echo "::warning::the server's network data still lacks${missing:- everything} after forty minutes; the apps embed what it has"