<imgsrc="resources/icon/app/web/icon-192.png"alt="Dir ODT to PDF"width="120"height="auto">
## Convert source directory with **odt** files to target path with **pdf** files
> [!NOTE]
> Source files will be converted if are changed or not exist in target path
## Repository content
<pre>
.
├── Cargo.lock
├── Cargo.toml Rust Cargo defs
├── justfile File defs for just command
├── linux Files to pack app for Linux
│ ├── install.sh Installer command (app and bin)
│ └── README README for linux installation
├── macos
│ ├── dir-odt-to-pdf.scpt Apple Script to build APP
│ ├── DirOdtToPdf.app Apple app
│ ├── install.command DMG Installer command (app and bin)
│ └── README DMG README
├── packages Distribution Packages
│ └── DirOdtToPdf.dmg DMG file
├── README.md
├── resources
│ ├── icon
│ ├── icon.psd
│ ├── ins_background.png
│ └── tools
├── run.sh Script model to run
├── src
│ └── main.rs Rust source code
└── test Path to test with run.sh
├── documents Target path PDFs files
└── originals Source path ODTs files
</pre>
[dir-odt-to-pdf](dir-odt-to-pdf) is the [Cargo.toml](Cargo.toml) <u>pakage name</u> and it should be <u>directory name</u> for path where [just command](https://just.systems/) will be used with [justfile](justfile) commands and recipes .
## MacOS APP
__DirOdtToPdf.app__ run **run-dir-odt-to-pdf.sh** located in /usr/local/bin
**/usr/local/bin/run-dir-odt-to-pdf.sh** can be used as a sequence of several executions of **dir-odt-to-pdf**
[justfile](justfile) settings:
```bash
MACOS_APP_PATH := "DirOdtToPdf.app"
```
## Terminal Commands
[dir-odt-to-pdf](dir-odt-to-pdf) can be used via commands installed in BIN_APP_PATH(/usr/local/bin):
| **dir-odt-to-pdf** | Binary | Executable that converts .odt files to .pdf.<br>Requires source and destination paths | SOURCE (for **.odt** files) DEST (for **.pdf** files) |
| **run-dir-odt-to-pdf.sh** | Script bash | Script to executes **dir-odt-to-pdf** binary<br>with specific values for **SOURCE** and **DEST**<br>To be used as model. | Does not require (defines them internally) |
<small>In MacOS [install.command](macos/install.command) copy above commands to BIN_APP_PATH(/usr/local/bin)</small>
| **package** | | on MacOS: <ul><li>**just make-app**</li><li>create **DirOdtToPdf.dmg** DMG package in [packages](packages)<br>with [macos README](macos/README) and [macos install](macos/install.command)</li></ul>on Linux: <ul><li>**just make-app**</li><li>pack binary in compressed archive<br> with [linux](linux) files and commands</li></ul> | architecture (arm64 or x86_64 or universal) |