Validate a Perch package
perch_validateValidate a Perch mod package: verify mod.json schema, entry, Lua parsing, widget declaration, and display types. For the final verdict, run the package with perch_run.
Instructions
Checks a package folder: mod.json against the manifest schema (id = folder name, no legacy widgets/settings keys, known scopes), the entry exists, every .lua parses, the entry declares a widget, and display types exist in the vocabulary. The definitive check is Perch's own loader — run the package (perch_run) and read Settings → Installed mods for the loader's verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_dir | Yes | Absolute path of the package folder (the one holding mod.json) |