feat(hololake): expose typed runtime context and modules
This commit is contained in:
parent
03e4338ab8
commit
b433611857
4 changed files with 56 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ use tauri_plugin_dialog::DialogExt;
|
|||
const UPDATE_ENDPOINT: &str = "https://guanghulab.com/hololake/releases/latest.json";
|
||||
const PUBLIC_STATE: &str = "SIGNED_UPDATE_FEED_READY_NO_RELEASE";
|
||||
|
||||
fn bundled_modules() -> Result<Vec<ModuleRecord>, String> {
|
||||
pub(crate) fn bundled_modules() -> Result<Vec<ModuleRecord>, String> {
|
||||
let registry: serde_json::Value =
|
||||
serde_json::from_str(include_str!("../../registries/module-registry.json"))
|
||||
.map_err(|error| format!("MODULE_REGISTRY_INVALID: {error}"))?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue