diff --git a/Readme.md b/Readme.md index 1fa259f..6bd9fd0 100644 --- a/Readme.md +++ b/Readme.md @@ -55,17 +55,36 @@ This file is reused for every job — it carries the correct LCD resolution meta ### 1. Install `UVtools` +- Install `UVtools` dependencies + ```bash sudo apt-get install -y curl sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/sn4k3/UVtools/master/Scripts/install-dependencies.sh)" ``` +- Install `UVtools` + +Grab the Linux release and extract it +```bash +LATEST=$(curl -fsSL https://api.github.com/repos/sn4k3/UVtools/releases/latest \ + | grep '"tag_name":' \ + | cut -d '"' -f4) + +wget -P ~/Downloads \ + "https://github.com/sn4k3/UVtools/releases/download/${LATEST}/UVtools_linux-x64_${LATEST}.zip" + +mkdir ~/UVtools +cd ~/UVtools +unzip ~/Downloads/UVtools_linux-x64_${LATEST}.zip +``` + ### 2. Run `UVtools` ```bash cd UVtools ./UVtools ``` +*To automate the conversion of gerber to printing files, you can jump to the section [Appendix: Automated script](#appendix-automated-script).* ### 3. Export `.pm4n` file from Gerber layer @@ -126,9 +145,15 @@ Automate the conversion from KiCAD to print files using a CLI. Make sure you have the `Dummy.pm4n` file specific to your printer. See the section [5. Create the `Dummy.pm4n` file](#5-create-the-dummypm4n-file) above. -### 2. Install UVtools wrapper +### 2. Setup the `UVtools` wrapper -Follow the UVtools wrapper [installation guide](UVtools/Readme.md) +Make sure `UVtools` is installed - follow the section [1. Install `UVtools`](#1-install-UVtools). + +By default `pcb-expose.sh` looks for `~/UVtools/UVtoolsCmd`. Override with: + +```bash +export UVTOOLSCMD=~/UVtools/UVtoolsCmd +``` ### 3. Export KiCAD gerbers