Skip to content

feat: drop the theme pack upload and remove the old packs - #24

Open
paviro wants to merge 8 commits into
RepriseOS:mainfrom
paviro:feature/drop-theme-upload
Open

paviro wants to merge 8 commits into
RepriseOS:mainfrom
paviro:feature/drop-theme-upload

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merge after #23, together with RepriseOS/repriseos#97.
Own commits: paviro/repriseos-installer@feature/move-extension-data...feature/drop-theme-upload (the rest of the diff is #23 and below).

After RepriseOS/repriseos#97 the firmware reads nothing from /themes. The installer drops the stock theme pack build and the uploads of /themes/default/theme.bin and /themes/dark/theme.bin, with their two upload stages, diagnostics entries, backup copies and reserved disk space.

On a mounted iPod running RepriseOS newer than 0.4.0 or a development build, the installer removes the two packs and the empty /themes folder once, under the edit lock. Other content under /themes stays, links are skipped, and a failure only prints. iPods on 0.4.0 or older are left alone.

Firmware from before RepriseOS/repriseos#97 still reads the packs: a 0.4.0 package installed with this installer gets no packs, and a development build cut before it loses them, so its Dark Mode leaves the artwork unchanged.

Tests cover the removal cases on a temporary directory.

Installed copies carry the minimum RVX API and target firmware id
from their manifest, in the catalog's "major.minor" and hex forms,
so the frontend can tell which copies the firmware loads.
The active copy is the first one in /Reprise, then /Revola, whose
own API and firmware match the iPod. A copy that does not load, or
whose required library does not, shows why, and browsing offers the
catalog version when that loads. A working copy whose update cannot
load stays Installed, and its details name the release it needs.
API failures name min_repriseos when it is newer than the device,
and installs also reinstall required libraries the firmware skips.
rv_row and rv_menu_entry grew in API 1.86, so a core at that API or
later only loads packages an SDK at 1.86 or later packed, and says
nothing about the ones it skips. The installer judged a copy by the
manifest's minimum API alone, so a Night Shift 0.1.2 packed by SDK
1.84 showed as Installed on such a core.

Installed copies report the SDK that packed them, the device the
floor it applies, and a copy below it reads "Built for an older
RepriseOS". The catalog version is offered when it loads; an entry
whose api is below the floor is as old, since the SDK refuses a
manifest api below its own. The write gate refuses such packages.
Two scenarios mount a simulated iPod with copies in
/Reprise/Extensions/: one on a core at RVX API 1.86, where copies
packed by an older SDK read "Built for an older RepriseOS", and one
on a 1.82 core that loads every build. The mock answers the device
read, writes, removals and the eject; a written package reports the
SDK and minimum API from its bytes, and the eject unmounts the iPod.
The catalog stays live.
@paviro paviro changed the title Drop the disk theme upload refactor: drop the disk theme upload Nov 27, 2026
@paviro paviro changed the title refactor: drop the disk theme upload chore: drop the disk theme upload Nov 27, 2026
@paviro
paviro force-pushed the feature/drop-theme-upload branch from 849bd0e to cdb374d Compare November 27, 2026 14:37
The core refuses images an older SDK packed once its API reaches a
layout change: rv_row and rv_menu_entry grew in 1.86, rv_pane grew in
1.89 and rv_pane_extra changed in 1.92. The floor is the last of those
at or below the device's API. The dev-panel scenario and its test use a
1.89 core.
RepriseOS after 0.4.0 keeps extension data (settings and files) under
/Reprise/Data/Extensions/<id>/; 0.4.0 wrote /Revola/Data/Extensions.
When the installer reads an iPod whose firmware is newer than 0.4.0 or
a development build, it moves that folder to /Reprise/Data/Extensions
once. A folder already there is kept and its old copy left behind; an
older firmware's folder is not touched, as it still reads it. The move
runs on the device read, under the edit lock, and a failure only prints.
Release packages built after RepriseOS/repriseos#97 carry no dark_mode
or bitmap_catalog file: Dark Mode lives in the Appearance extension and
the firmware no longer reads /themes. The installer therefore no longer
rebuilds the stock theme pack from the Apple firmware or uploads
/themes/default/theme.bin and /themes/dark/theme.bin. The two upload
stages, their diagnostics entries, the staged copies in the firmware
backup and the disk space reserved for the packs go with it.

An older package that still carries the two files loads as before; the
installer ignores them.
RepriseOS through 0.4.0 reads /themes/default/theme.bin and
/themes/dark/theme.bin; firmware after RepriseOS/repriseos#97 does not,
so an updated iPod keeps two stale packs. When the installer reads a
mounted iPod whose firmware is newer than 0.4.0 or a development build,
it removes the two packs and the folders around them once, on the
device read under the edit lock. Other content under /themes stays with
the folder; an older firmware's packs are not touched, as it still
reads them. Links are not followed and a failure only prints.
@paviro
paviro force-pushed the feature/drop-theme-upload branch from cdb374d to 58900cf Compare November 28, 2026 15:56
@paviro paviro changed the title chore: drop the disk theme upload feat: drop the disk theme upload and remove the old packs Nov 28, 2026
@paviro paviro changed the title feat: drop the disk theme upload and remove the old packs feat: drop the theme pack upload and remove the old packs Nov 28, 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