Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated. Read this first before publishing or installing.
Cross-platform download returns bad JSON instead of the file
Bug
Downloading a build for a different platform than the one you're on returns a bad JSON page instead of the file. Reported case: requesting the macOS download while on a Windows machine.
What I tried to reproduce it
From this container I hit the raw download route directly for adom/adom-wiki-cli, both with and without a Windows User-Agent:
curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)..." \
"https://wiki.adom.inc/download/adom/adom-wiki-cli/latest?platform=macos&arch=x64"
That worked correctly: 302 to the versioned asset (/download/adom/adom-wiki-cli/1.7.43/adom-wiki-darwin-x64?via=latest), which served a real Mach-O binary with the right headers (content-type: application/octet-stream, content-disposition: attachment, correct content-length/x-integrity). Same result with no arch param. So the base /download/.../latest?platform=... route itself isn't where this reproduces, at least not for this package.
That points at one of:
- The platform-detected download CTA on adom.inc (nitrogen) doing client-side OS detection and constructing a bad URL when the detected platform doesn't match the visitor's actual OS
- A desktop installer's auto-update / version-check manifest fetch (a raw
version.json/manifest URL, not the/download/.../latestredirect) returning something the client can't parse when it asks for a platform tier that doesn't exist yet, possibly related to macOS not being tiered yet ([reference_wiki_download_latest_tiers.md] noted macOS's manifest isn't tiered) - A different package than adom-wiki-cli where the macOS release asset or manifest is missing/malformed
Repro needed
Could use: which page/package this was on, the exact URL or button clicked, and the raw response body (the "bad json" text) so we can pin down which layer is actually serving it.