site: the nightly links as Nexus names the images; Nexus open to anonymous read of snapshots only (#191)

Nexus splits pc-stick.img.xz as classifier pc-stick.img, extension
xz: the Downloads design's placeholders and build.py's pattern follow.
All four links resolve to the latest snapshot. On Nexus (ruled
"Snapshots only"): the anonymous user's role is now
starshipos-anonymous-snapshots, read and browse on starshipos-snapshots
alone, and anonymous access is on; releases and builds stay closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-21 12:49:01 +00:00
parent 0234dc6baf
commit db0085d926
4 changed files with 20 additions and 5 deletions
+3 -2
View File
@@ -40,7 +40,8 @@ PAGES = ["Main", "Inquiries", "TryIt"]
RELEASE_PAGES = ["Downloads", "Documents"]
RELEASES = "https://gitea.starshipos-f18.org/rajames/LithosAnanke/releases/download/"
# #191: the latest nightly, from Nexus's snapshots (opened for anonymous read, Captain Bob 2026-11-13): the newest
# org.starship:kernelImage asset with the classifier and extension the design names, as [NIGHTLY:<classifier>:<ext>]
# org.starship:kernelImage asset with the classifier and extension the design names, as [NIGHTLY:<classifier>:<ext>] --
# as Nexus splits them: pc-stick.img.xz is classifier pc-stick.img, extension xz
NIGHTLY = ("https://nexus.starshipos-f18.org/service/rest/v1/search/assets/download?repository=starshipos-snapshots"
"&maven.groupId=org.starship&maven.artifactId=kernelImage&sort=version&direction=desc"
"&maven.classifier=%s&maven.extension=%s")
@@ -110,7 +111,7 @@ def forms(html, page):
def release(html, tag, sums):
"""[TAG], [RELEASE]/<file> and [SHA:<file>] from the release; a file it has not is an error."""
html = html.replace("[TAG]", tag)
html = re.sub(r"\[NIGHTLY:([a-z0-9-]+):([a-z0-9.]+)\]", lambda m: (NIGHTLY % (m.group(1), m.group(2))).replace("&", "&amp;"), html)
html = re.sub(r"\[NIGHTLY:([a-z0-9.-]+):([a-z0-9.]+)\]", lambda m: (NIGHTLY % (m.group(1), m.group(2))).replace("&", "&amp;"), html)
html = html.replace("[RELEASE]/", RELEASES + tag + "/")
def sha(m):