Skip to content

fix: read the optional library count of an extension - #22

Open
paviro wants to merge 1 commit into
RepriseOS:mainfrom
paviro:feature/optional-libraries
Open

paviro wants to merge 1 commit into
RepriseOS:mainfrom
paviro:feature/optional-libraries

Conversation

@paviro

@paviro paviro commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge before RepriseOS/repriseos#90 and #23. Both this PR and #23 add a test at the same spot in src-tauri/src/extensions/tests.rs; keep both.

RVX API 1.84 (RepriseOS/repriseos#90) splits the manifest's library count at offset 52 into two 16-bit counts: the listed libraries, then how many of the last ones are optional. The installer reads one 32-bit word, so a package with an optional library, such as Night Shift 0.1.3 from RepriseOS/extensions#2, fails with "Invalid RVX package" and is missing from the installed list.

The installer reads both counts and checks every listed id. Only required libraries have to be installed first or block a removal, as on the firmware. Older packages have 0 in the second half and parse as before.

A RepriseOS release with API 1.84 or later needs an installer release with this first, or released installers cannot install Night Shift 0.1.3.

RVX API 1.84 splits the manifest's library count into two 16-bit
halves: the number of listed libraries, then how many of the last
ones are optional. Read both, so packages with optional libraries
parse, and require only the others to be installed, as the firmware
does.
@paviro paviro changed the title Read the optional library count of an extension fix: read the optional library count of an extension Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant