Skip to content

Commit

Permalink
add instructions for the web demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Oct 18, 2024
1 parent 2d63f7d commit cfd9d91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ npm run swig
# Build the native version (requires a working C++ compiler)
npm run build:native

# Built the WASM version (requires emsdk in path)
# Build the WASM version (requires emsdk in path)
npm run build:wasm

# Alternatively, get the compiled binaries from a recent GHA run
mkdir -p lib/binding && cd lib/binding && unzip -x ~/Downloads/native-ubuntu-latest-tiff.zip && unzip -x ~/Downloads/wasm-external-no_tiff.zip

# Run the tests (Node.js and browser)
npm test

# Run the web demo (should work on all OS if you have the WASM version)
cd test/browser && npx webpack serve --mode=production
# then open http://localhost:8030/
```

# Usage
Expand Down

0 comments on commit cfd9d91

Please sign in to comment.