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:
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user