From be5ed83932a4a081bb9fee4c21a420236d57eda2 Mon Sep 17 00:00:00 2001 From: zhao Date: Wed, 13 Sep 2023 21:40:41 -0400 Subject: [PATCH] update rbuild comments and readme with windows support --- README.md | 6 ++---- rbuild.py | 9 +++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e565ab3..fead1ab 100644 --- a/README.md +++ b/README.md @@ -75,11 +75,9 @@ A python script: [rbuild.py](./rbuild.py) is provided to generate different pro configure the path to the OpenSCAD binary in [rbuild.py](./rbuild.py). Requirements: - - `openscad` cli command (Currently only supported on Linux/Mac). + - `openscad` CLI binary - `python3` -For Windows, you'll most likely have to generate the STLs in [rack/print](./rack/print) manually. - ### Examples: Generate all project files for the `micro` profile: @@ -89,7 +87,7 @@ This will build all the parts defined in [rack/print](./rack/print), and put the You can also provide a `-dz {n}` parameter to adjust the height of the generated rack. Configuring other rack variables can be done in [config/rackframe.scad](./config/rackFrame.scad). -For generating a specific part: +For generating a specific part, and putting it into a new `stl/custom` target directory: `python3 rbuild.py -b yBar -c micro -t custom` diff --git a/rbuild.py b/rbuild.py index 49b68d3..c7a7a29 100644 --- a/rbuild.py +++ b/rbuild.py @@ -5,8 +5,17 @@ import subprocess import os # ------------- EDIT THESE VARIABLES WITH THE LOCATION OF YOUR OPENSCAD BINARIES + +# Linux Example PATH_TO_OPENSCAD = '/usr/bin/openscad' PATH_TO_OPENSCAD_NIGHTLY = '/snap/bin/openscad-nightly' + +# Mac Example +# PATH_TO_OPENSCAD = '/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD' + +# Windows Example +# PATH_TO_OPENSCAD = r'C:\Program Files\OpenSCAD\openscad.exe' + ###############################################################################