CLI 1.6.0: --publish packs a library's scripts twice, so no script runs on iOS
Hi Rive team! ๐ Thanks for the CLI, it's been great to work with. I found one issue with libraries that carry scripts.
What happens
When a project imports a published library whose components use scripts, `rive <dir> --publish` packs each library script twice: once as the library declares it, and again as a path-named script (`.libraries/<library>@<snapshot>/Scripts/<ScriptName>`). The signature then doesn't match, and on iOS none of the file's scripts or shaders run. The console only shows `ScriptAsset doesn't have a generator function <ScriptName>`.
Steps
1. In the editor, publish a library with a component that uses a script.
2. Import that component into a second file (ours also has its own scripts).
3. `rive create test --from-remote-file=<second file id>`, with no changes to rive.yaml.
4. `rive test --publish`
5. Load `test/build/test.riv` with rive-ios on iOS.
Expected: each library script is packed once, like the editor's export (the editor export of the same file runs fine on iOS).
Actual: `--publish` prints `signed 27 scripts`, but the .riv holds 32 script/shader payloads (the 5 library scripts appear twice). No script runs.
Also noticed
- Any `.luau` placed inside `.libraries/<snapshot>/` gets packed too, even if nothing references it.
- `exclude:` in rive.yaml doesn't stop it. The docs describe `.libraries/` as the tool's own storage, so we expected the build to skip it.
Versions: Rive CLI 1.6.0 (Homebrew, macOS arm64) ยท rive-ios 6.28.1 ยท iOS 27
Happy to put together a small sample file if that helps. Thank you!