Add mic support for EvenHub apps

This commit is contained in:
James Babcock committed 2026-08-16 21:01:20 -07:00
1 parent add8763028
commit b86f395866
11 files changed
+593 -17

No files matched your search

+15
View File
@@ -142,6 +142,21 @@ export function installEvenHubPackageFile(path: string): InstalledEvenHubApp {
return installEvenHubPackageBytes(bytes);
}
/**
* Read an .ehpk's manifest without installing it — used by the Files app to
* show the permission-confirmation dialog before install/run. Returns null if
* the file can't be read or parsed.
*/
export function readEvenHubPackageManifest(path: string): EvenHubManifest | null {
const bytes = readBinaryFile(path);
if (!bytes) return null;
try {
return inspectEhpk(bytes).manifest;
} catch {
return null;
}
}
/** Remove the stored EHPK, unpacked runtime files, and registry entry. */
export function uninstallEvenHubPackage(packageId: string): boolean {
const apps = getInstalledEvenHubApps();