Add OCR dependency support to plugin installer

Adds new flags `--drawj2d-jar` and `--install-deps` to handle OCR dependencies
Automatically checks for required tools (unzip, Java, drawj2d.jar)
Installs missing system packages when `--install-deps` is used
Updates documentation with OCR setup examples

The implementation includes dependency checking that can be skipped with `--skip-deps`
when OCR functionality is not needed. The installer now copies and configures
drawj2d.jar if provided, and updates the plugin's data.json accordingly.
This commit is contained in:
2026-05-31 18:00:01 +02:00
parent 07f4c27d58
commit 23ee2314b3
2 changed files with 163 additions and 3 deletions
+4
View File
@@ -273,6 +273,10 @@ npm run install-plugin -- --vault /path/to/vault
# Exact target directory also works
npm run install-plugin -- --plugin-dir /path/to/vault/.obsidian/plugins/obsidian-remarkable
# OCR dependency setup
npm run install-plugin -- --vault /path/to/vault --drawj2d-jar /path/to/drawj2d.jar
npm run install-plugin -- --vault /path/to/vault --install-deps
```
---