feat: sequences v2, driver frame sync and submodule updates
- Sequences v2, bridges and sim-controller changes from the working tree. - Records the led-driver, led-tool and led-simulator commits above. - Includes dmx-driver/ and graphify-out/. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f8f67823b
commit
50ca46fee6
657 files changed
+15818
-1107
No files matched your search
@@ -27,23 +27,6 @@ done
|
||||
npx --yes html-minifier-terser@7.2.0 --collapse-whitespace --remove-comments \
|
||||
--minify-css true --minify-js true -o "$OUT/audio.html" web/audio.html
|
||||
|
||||
# led-driver app files and their hashes, for updating drivers from the web UI (same set as tools/driver_ota.py)
|
||||
python3 - "$OUT/static/driver" <<'PY'
|
||||
import hashlib, json, os, shutil, sys
|
||||
sys.path.insert(0, "tools")
|
||||
from driver_ota import MAX_FILE, file_set
|
||||
root = sys.argv[1]
|
||||
files = []
|
||||
for dest, local in file_set("led-driver"):
|
||||
data = open(local, "rb").read()
|
||||
if len(data) > MAX_FILE:
|
||||
sys.exit(f"{dest}: over {MAX_FILE} B, drivers cannot be sent it")
|
||||
os.makedirs(os.path.dirname(os.path.join(root, dest)), exist_ok=True)
|
||||
shutil.copy(local, os.path.join(root, dest))
|
||||
files.append({"path": dest, "sha": hashlib.sha256(data).hexdigest(), "size": len(data)})
|
||||
json.dump({"files": files}, open(os.path.join(root, "manifest.json"), "w"))
|
||||
PY
|
||||
|
||||
# Ship only the .gz copies; the server sends Content-Encoding: gzip
|
||||
find "$OUT" -type f -exec gzip -9 -n -f {} \;
|
||||
find "$OUT" -name '*.gz' -exec gzip -t {} \;
|
||||
|
||||
Reference in new issue
Block a user