Merge branch '1.2-dev' of https://git.astronand.dev/Hyperion/HyperionOS into 1.2-dev

This commit is contained in:
2026-03-03 08:02:09 -05:00

View File

@@ -102,12 +102,7 @@ def process_root(src_root: Path, out_root: Path, minify: bool, micro: bool):
if micro: if micro:
print(" > LZ4 compressing") print(" > LZ4 compressing")
compressed = compress_lz4(content.encode("utf-8")) compressed = compress_lz4(content.encode("utf-8"))
# wrap in kernel.unpack if in hyperion-kernel dst.write_bytes(compressed)
if pkg_dir.name == "hyperion-kernel" and dst.suffix == ".lua":
content_str = f"kernel.unpack([=[{compressed.hex()}]=])"
dst.write_text(content_str, encoding="utf-8")
else:
dst.write_bytes(compressed)
else: else:
dst.write_text(content, encoding="utf-8") dst.write_text(content, encoding="utf-8")
else: else: