lhasa-ligand-builder 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -126,9 +126,9 @@ import 'lhasa-ligand-builder/style.css'
126
126
 
127
127
  ## Building from source (alternative)
128
128
 
129
- You can also build everything from source yourself.
129
+ You can also build everything from source yourself, using the `build_wasm.sh` script found in this repo.
130
130
 
131
- Lhasa's C++ sources are a part of [Coot](https://github.com/pemsley/coot) and you need to compile the C++ WebAssembly module first.
131
+ Lhasa's C++ sources are a part of [Coot](https://github.com/pemsley/coot) and the C++ WebAssembly module needs to be compiled first.
132
132
 
133
133
  NOTE: All build scripts are Unix scripts. On Windows, you may need WSL.
134
134
 
@@ -140,14 +140,25 @@ NOTE: All build scripts are Unix scripts. On Windows, you may need WSL.
140
140
  * meson
141
141
  * curl, tar, etc.
142
142
 
143
- Clone the [Coot](https://github.com/pemsley/coot) repo and go to `lhasa/`.
143
+ Conveniently, now there is a build script: `build_wasm.sh`.
144
+ It clones the [Coot](https://github.com/pemsley/coot) repo and builds the sources found at `lhasa/` and `layla/`.
144
145
 
145
- The build procedure is very much like [Moorhen](https://github.com/moorhen-coot/Moorhen)'s:
146
+ You can just simply run
147
+ ```bash
148
+ ./build_wasm.sh
149
+ ```
150
+ and it will do everything for you, including downloading and building all C++ dependencies.
151
+ For more options, run:
152
+ ```bash
153
+ ./build_wasm.sh --help
154
+ ```
155
+ By default, the script will output artifacts to `wasm_build/outputs` (This is configurable with environment variables).
146
156
 
147
- * Run `get_sources` (download C++ dependencies)
148
- * Run `initial_build.sh` to build all the necessary dependencies using Emscripten
149
- * Run `build_lhasa.sh` to build the Lhasa WebAssembly module
150
- * Copy `lhasa.js`, `lhasa.worker.js` (if it exists) and `lhasa.wasm` from `Coot/lhasa/lhbuild/` to `LhasaReact/public`
157
+ Then, after the build finishes, you can run:
158
+ ```bash
159
+ ./build_wasm.sh --install
160
+ ```
161
+ in order to copy the freshly generated `lhasa.js` and `lhasa.wasm` to `LhasaReact/public` (and `lhasa.d.ts` to `LhasaReact/src/types.d.ts`)
151
162
 
152
163
  ### Running LhasaReact locally
153
164