summaryrefslogtreecommitdiff
path: root/labui.spec
diff options
context:
space:
mode:
authorChristian Kolset <ckolset@colostate.edu>2026-08-11 11:36:10 -0600
committerChristian Kolset <ckolset@colostate.edu>2026-08-11 11:36:10 -0600
commitd734011601ae1eecc0e3ae334b58d07e5b4d80d3 (patch)
tree23d3177ff85a045c8316325a998e741cbde18e20 /labui.spec
parent04f8cc80c798fe3f3eb9690721da7cd476d4890f (diff)
Finish multi-platform release restructuring (previous commit was incomplete)
git add silently staged nothing from the previous attempt because one pathspec in that batch (scripts/release/repository, already moved) no longer existed — only the .gitignore-adjacent renames landed. This commit adds what was actually meant to go in: - core/updater.py: releases/download/updates-<platform>/ instead of a single shared updates/ tag. - labui.spec: bundles root.json from this platform's own tree. - scripts/release/repo_init.py, repo_release.py: auto-detect platform, operate inside scripts/release/<platform>/. - .gitignore: per-platform ignore rules (previous commit only carried the file renames, not this). - docs/building.md, scripts/release/README.md: rewritten for the per-platform flow. - Also picks up pre-existing local TUF re-signing (new snapshot/ timestamp signatures, bumped expiry/version) that was sitting uncommitted before this restructuring started. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'labui.spec')
-rw-r--r--labui.spec13
1 files changed, 12 insertions, 1 deletions
diff --git a/labui.spec b/labui.spec
index 8468909..71d50dd 100644
--- a/labui.spec
+++ b/labui.spec
@@ -17,13 +17,24 @@ root_dir = Path(SPECPATH)
# root.json is generated by scripts/release/repo_init.py — bundle it once it
# exists so a fresh install can bootstrap tufup trust without an insecure
# first fetch. Skip silently before that's ever been run (e.g. first build).
+# Read from this platform's own repo tree (scripts/release/<platform>/) —
+# must match core.updater._platform_key()'s mapping, since a build only ever
+# bundles its own platform's root.json.
+def _platform_key():
+ if sys.platform.startswith("win"):
+ return "win"
+ if sys.platform == "darwin":
+ return "mac"
+ return "linux"
+
datas = [
(str(root_dir / "ui" / "style_dark.qss"), "ui"),
(str(root_dir / "ui" / "style_light.qss"), "ui"),
(str(root_dir / "ui" / "style.qss"), "ui"),
(str(root_dir / "plugins"), "plugins"),
]
-_root_json = root_dir / "scripts" / "release" / "repository" / "metadata" / "root.json"
+_root_json = (root_dir / "scripts" / "release" / _platform_key()
+ / "repository" / "metadata" / "root.json")
if _root_json.exists():
datas.append((str(_root_json), "repository/metadata"))