Skip to content

Commit

Permalink
Merge pull request #6 from natke/fix-webmd-lists
Browse files Browse the repository at this point in the history
Add more spaces
  • Loading branch information
natke authored Sep 27, 2021
2 parents 34c05a0 + 9fd4c9e commit 7c719bb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/build/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,32 +109,32 @@ Q: unittest fails on Debug build with debug info.

You can either use the prebuilt artifacts or build it by yourself.

- Setup by script.
* Setup by script.

In `<ORT_ROOT>/js/web/`, run `npm run pull:wasm` to pull WebAssembly artifacts for latest master branch from CI pipeline.

- Download artifacts from pipeline manually.
* Download artifacts from pipeline manually.

You can download prebuilt WebAssembly artifacts from [Windows WebAssembly CI Pipeline](https://dev.azure.com/onnxruntime/onnxruntime/_build?definitionId=161&_a=summary). Select a build, download artifact "Release_wasm" and unzip. See instructions below to put files into destination folders.

- Build WebAssembly artifacts.
* Build WebAssembly artifacts.

1. Build ONNX Runtime WebAssembly
1. Build ONNX Runtime WebAssembly

Follow [instructions above](#build-onnx-runtime-for-webassembly) for building ONNX Runtime WebAssembly.
Follow [instructions above](#build-onnx-runtime-for-webassembly) for building ONNX Runtime WebAssembly.

2. Copy following files from build output folder to `<ORT_ROOT>/js/web/dist/` (create the folder if it does not exist):
2. Copy the following files from build output folder to `<ORT_ROOT>/js/web/dist/` (create the folder if it does not exist)

* ort-wasm.wasm
* ort-wasm-threaded.wasm (build with flag '--enable_wasm_threads')
* ort-wasm-simd.wasm (build with flag '--enable_wasm_simd')
* ort-wasm-simd-threaded.wasm (build with flags '--enable_wasm_threads --enable_wasm_simd')
* ort-wasm.wasm
* ort-wasm-threaded.wasm (build with flag '--enable_wasm_threads')
* ort-wasm-simd.wasm (build with flag '--enable_wasm_simd')
* ort-wasm-simd-threaded.wasm (build with flags '--enable_wasm_threads --enable_wasm_simd')

3. Copy following files from build output folder to `<ORT_ROOT>/js/web/lib/wasm/binding/`:
3. Copy the following files from build output folder to `<ORT_ROOT>/js/web/lib/wasm/binding/`:

* ort-wasm.js
* ort-wasm-threaded.js (build with flag '--enable_wasm_threads')
* ort-wasm-threaded.worker.js (build with flag '--enable_wasm_threads')
* ort-wasm.js
* ort-wasm-threaded.js (build with flag '--enable_wasm_threads')
* ort-wasm-threaded.worker.js (build with flag '--enable_wasm_threads')

3. Use the following command in folder `<ORT_ROOT>/js/web` to build:

Expand Down

0 comments on commit 7c719bb

Please sign in to comment.