Merge pull request #26 from ochafik/update-20240529

Update WASM to 20240529 (+ tweak readme)
This commit is contained in:
Olivier Chafik 2024-05-30 13:14:39 +01:00 committed by GitHub
commit 0d9b861daf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 17 deletions

View file

@ -1,4 +1,4 @@
WASM_BUILD_URL=https://files.openscad.org/playground/OpenSCAD-2023.08.13.wasm16037-WebAssembly.zip
WASM_BUILD_URL=https://files.openscad.org/snapshots/OpenSCAD-2024.05.29.wasm19480-WebAssembly.zip
SINGLE_BRANCH_MAIN=--branch main --single-branch
SINGLE_BRANCH=--branch master --single-branch

View file

@ -73,3 +73,15 @@ npm run build
rm -fR ../ochafik.github.io/openscad2 && cp -R dist ../ochafik.github.io/openscad2
# Now commit and push changes, wait for site update and enjoy!
```
## Adding OpenSCAD libraries
You'll need to update 3 files (search for BOSL2 for an example):
- [Makefile](./Makefile): to pull the library's code (optionally alias some files for easier imports) and package it as a `.zip` archive
- [src/fs/zip-archives.ts](./src/fs/zip-archives.ts): to use the `.zip` archive in the UI (both for file explorer and automatic imports mounting)
- [LICENSE.md](./LICENSE.md): most libraries require proper disclosure of their usage and of their license. If a license is unique, paste it in full, otherwise, link to one of the standard ones already there.
Send us a PR, then once it's merged request an update to the hosted https://ochafik.com/openscad2 demo.

File diff suppressed because one or more lines are too long

Binary file not shown.