app
SOLIDWORKS Bridge
Public Made by Adomby adom
Launch, model and quit SOLIDWORKS from any Adom container. Nothing is ever lost.
← Commit history
release.sh: restore release title after pkg publish
5 files changed
+15−2
install.shtests/wiring.rs+2−1@@ -1188,6 +1188,7 @@ fn the_release_script_syncs_the_wiki_in_order_and_verifies() { "git commit", "--files $(git ls-files)", "adom-wiki pkg publish --org adom",+ "adom-wiki release edit", "--files page.json", "tools/verify-wiki.py", ];@@ -1197,7 +1198,7 @@ fn the_release_script_syncs_the_wiki_in_order_and_verifies() { at = i + step.len(); } let verify = std::fs::read_to_string(root.join("tools/verify-wiki.py")).unwrap();- for claim in ["hero_path", "the title", "the tags", "BRIDGE_VERSION", "the committed manifest"] {+ for claim in ["hero_path", "the title", "the tags", "BRIDGE_VERSION", "the committed manifest", "the release title"] { assert!(verify.contains(claim), "verify-wiki.py does not check {claim}"); } let page: serde_json::Value = serde_json::from_str(&std::fs::read_to_string(root.join("page.json")).unwrap()).unwrap();
tools/release.sh+4−1@@ -88,8 +88,11 @@ if [ "${1:-}" = "--publish" ]; then adom-wiki repo push "$PAGE" --json -m "$VER source" --files $(git ls-files) >/dev/null echo "== 5/7 skills package" adom-wiki pkg publish --org adom+ # A pkg publish REWRITES the release's title and changelog to "Release <ver>"+ # (measured 2026-10-02 on 0.9.10-0.9.12): put them back.+ adom-wiki release edit "$PAGE" "$VER" --title "$TITLE" --changelog "$LOG" >/dev/null echo "== 6/7 page.json LAST (a pkg publish can unlink the hero, title and brief)" adom-wiki repo push "$PAGE" --files page.json -m "page.json: $VER (hero, title, brief, tags)" echo "== 7/7 verify"- python3 tools/verify-wiki.py "$VER" "$SHA" "$SIZE" "$ZIP" || { echo "ERROR: THE WIKI DOES NOT MATCH THIS RELEASE - see above"; exit 1; }+ RELEASE_TITLE="$TITLE" python3 tools/verify-wiki.py "$VER" "$SHA" "$SIZE" "$ZIP" || { echo "ERROR: THE WIKI DOES NOT MATCH THIS RELEASE - see above"; exit 1; } fi
tools/verify-wiki.py+9@@ -48,6 +48,15 @@ def main(): check(page.get("version") == ver, "the page's package version", str(page.get("version"))) bv = get(API + "/files/BRIDGE_VERSION", raw=True).decode().strip() check(bv == ver, "the page's BRIDGE_VERSION", bv)+ want_title = os.environ.get("RELEASE_TITLE")+ if want_title:+ rel = subprocess.run(["adom-wiki", "release", "list", "%s/%s" % (OWNER, SLUG)], capture_output=True, text=True)+ try:+ rows = json.loads(rel.stdout).get("releases", [])+ except ValueError:+ rows = []+ got = next((r.get("title") for r in rows if r.get("version") == ver), None)+ check(got == want_title, "the release title (a pkg publish rewrites it)", str(got)) head = subprocess.run(["git", "-C", ROOT, "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip() print(" page commit %s, local HEAD %s" % (page.get("last_commit_hash"), head)) if bad:
uninstall.sh