update rbuild comments and readme with windows support

This commit is contained in:
zhao
2023-09-13 21:40:41 -04:00
parent f358b16ed0
commit be5ed83932
2 changed files with 11 additions and 4 deletions

View File

@ -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). configure the path to the OpenSCAD binary in [rbuild.py](./rbuild.py).
Requirements: Requirements:
- `openscad` cli command (Currently only supported on Linux/Mac). - `openscad` CLI binary
- `python3` - `python3`
For Windows, you'll most likely have to generate the STLs in [rack/print](./rack/print) manually.
### Examples: ### Examples:
Generate all project files for the `micro` profile: 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 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). 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` `python3 rbuild.py -b yBar -c micro -t custom`

View File

@ -5,8 +5,17 @@ import subprocess
import os import os
# ------------- EDIT THESE VARIABLES WITH THE LOCATION OF YOUR OPENSCAD BINARIES # ------------- EDIT THESE VARIABLES WITH THE LOCATION OF YOUR OPENSCAD BINARIES
# Linux Example
PATH_TO_OPENSCAD = '/usr/bin/openscad' PATH_TO_OPENSCAD = '/usr/bin/openscad'
PATH_TO_OPENSCAD_NIGHTLY = '/snap/bin/openscad-nightly' 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'
############################################################################### ###############################################################################