Repository navigation
Mavis UI 0.1.0-rc.20
Pre-release
Pre-release
·
58 commits
to main
since this release
All nine Mavis packages move to 0.1.0-rc.20 together. This release only changes the creator: the components and renderers are the same as in 0.1.0-rc.19, and Jolt stays at 0.1.0-rc.20.
Over-the-air updates in the creator
create-mavis --ota sets up signed over-the-air updates for a project's NativeScript app, with @getcortexlabs/ota-nativescript and Orbit's Mobile updates. An update carries JavaScript, CSS and assets; plugins, App_Resources and the NativeScript runtime still go through the stores.
--ota init --orbit <url> --workspace <id>adds the SDK andota-nsand writes the build hook, with a projectpostinstallthat writes it again where npm 11 and pnpm skip dependency scripts. It creates the manifest key outside the project, registers the keys in Orbit and writes a public-onlyota.config.json. It also addssrc/ota.ts, which confirms each launch withmarkReady()before checking for updates in the background, without waiting for the network.--ota baseline --platform <p>records the native fingerprint of the store binary.--ota publish --platform <p>prepares the release bundle and stops with the section that changed when the native side differs from the baseline. Otherwise it packs, verifies and uploads to Orbit, and assigns the release with--channeland--rollout.--dry-runstops before the upload.--ota init --localwith--ota servetests the loop againstota-ns serveon your machine.
The Orbit token is read from ORBIT_TOKEN and is never written to the project. Guide: https://mavis-ui.getcortexlabs.com/guide/ota-updates
Install
npm install @getcortexlabs/mavis@0.1.0-rc.20 @rafaelaugusto/jolt@0.1.0-rc.20
npm install @getcortexlabs/mavis-web@0.1.0-rc.20 @rafaelaugusto/jolt@0.1.0-rc.20
npx @getcortexlabs/create-mavis@0.1.0-rc.20 my-app