build: build/Rosetta.rbxm / .rbxmx, the native Roblox build: a Rosetta root ModuleScript (registry, _internal) and chunk ModuleScripts loaded on first include, each under the native codegen budget; build/Rosetta.luau is the no-native single file; Rojo mounts the rbxm; chunked test suite and lune / rojo check

This commit is contained in:
4DBug committed 2026-11-01 19:04:51 -06:00
1 parent 9e7d159af8
commit 6baa698abe
12 files changed
+195815 -2596

No files matched your search

+15 -5
View File
@@ -41,11 +41,21 @@ as `F`, and its input files as variables such as `pngBytes` (a buffer) or `srtTe
## Installing
**Roblox.** The library is one ModuleScript, [`build/Rosetta.luau`](../../build/Rosetta.luau) (committed; rebuilt by
`python3 -I tools/build.py roblox`). Paste it into a ModuleScript named `Rosetta`, or mount it with Rojo
(`"Rosetta": { "$path": "rosetta/build/Rosetta.luau" }`; this repository's `default.project.json` does, so
`rojo build -o Rosetta.rbxm` or `rojo serve` works from here). Put it where both client and server can see it, for
example ReplicatedStorage:
**Roblox.** Two builds, both committed (rebuilt by `python3 -I tools/build.py roblox`):
- [`build/Rosetta.rbxm`](../../build/Rosetta.rbxm), the native build: a ModuleScript `Rosetta` with child
ModuleScripts, the chunks (Core, one per heavy codec such as Mpeg2, H264, Jpeg, Opus, and the rest by folder). A
chunk is required the first time one of its modules is, so an Actor that only decodes MPEG-1 and JPEG loads only
those chunks and Core. Roblox compiles native code per ModuleScript within a budget per module; each chunk stays
well under it (tools/bundle.py checks it). Insert the file, or mount it with Rojo
(`"Rosetta": { "$path": "rosetta/build/Rosetta.rbxm" }`; this repository's `default.project.json` does, so
`rojo build -o Rosetta.rbxm` or `rojo serve` works from here). [`build/Rosetta.rbxmx`](../../build/Rosetta.rbxmx)
is the same model as XML.
- [`build/Rosetta.luau`](../../build/Rosetta.luau), one ModuleScript with no native code (one 5.9 MB module is over
the native budget): paste it into a ModuleScript named `Rosetta`, or mount it with
`"$path": "rosetta/build/Rosetta.luau"`.
Put it where both client and server can see it, for example ReplicatedStorage:
<!-- doc:display needs Roblox -->
```luau