Want to add your app curation to the official HexOS catalog? Install scripts now live in the hexos-app-catalog repository — this is the single source of truth for all curated and community install scripts.
myapp.json).ts files in a subdirectory (e.g., myapp/myapp_hook.ts) — or use inline scriptContent for simpler hooksThis example shows where files belong. The myapp files are placeholders.
hexos-app-catalog/
├── _lib/
│ └── hook_context.ts # HookContext type stubs (import for autocompletion)
├── myapp.json # Your install script (V4, V5 or V6)
├── myapp/ # Hook scripts directory (V5/V6, optional)
│ └── myapp_hook.ts # Hook implementation
├── plex.json # Example: first-party script with hooks
├── plex/
│ └── plex_hook.ts
├── jellyfin.json # Example: V6 script with hooks
└── ...
"version": 4."version": 5 and add a hooks array."version": 6. See the Hooks Reference for details.All three are fully supported. Add hooks only if your app benefits from post-install automation.
scriptContent)The following is one declaration to add to the hooks array of a complete V5 install script. It is not a complete app configuration. Keep the required script, requirements and app_values fields. Replace /health with the health endpoint the app actually provides.
{
"id": "health-check",
"event": "onAfterInstall",
"scriptContent": "export async function setup(ctx) {\n await ctx.registerCheckpoints([{ id: 'ready', message: 'Waiting for app' }]);\n await ctx.waitForApp('/health');\n await ctx.emitCheckpoint('ready');\n}",
"entrypoint": "setup",
"timeout": 120,
"description": "Checking app health",
"optional": true
}
Info: Test the complete install script through Custom Install in Expert Mode. Test both installation and upgrades with a disposable app before submitting it. Inline and file-based hooks both need review.
optional: true for non-critical automation$LOCATION() macros instead of hardcoded pathsowner on directories that need specific permissionsNot ready for a PR? Share your install script JSON in the Applications forum on the HexOS Hub to get feedback from other users first.