Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.43 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.43 KB

DOSBOX-CANVAS



promo

DEMO

work in progress..



Local build

First of all, you need to install rust compiler (rustc 1.74+) and wasm utilities (wasm-strip and wasm-opt) to compile .wasm binary file:

Example of installing wasm utilities for Linux
wget \
  -P /tmp \
  https://github.com/WebAssembly/wabt/releases/download/1.0.34/wabt-1.0.34-ubuntu.tar.gz
tar -xf /tmp/wabt-1.0.34-ubuntu.tar.gz -C /tmp
cp /tmp/wabt-1.0.34/bin/wasm-strip /usr/bin
rm -rf /tmp/wabt-1.0.34

wget \
  -P /tmp \
  https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz
tar -xf /tmp/binaryen-version_116-x86_64-linux.tar.gz -C /tmp
cp /tmp/binaryen-version_116/bin/wasm-opt /usr/bin
rm -rf /tmp/binaryen-version_116


Then install npm packages from the root folder and run "build" command after:

npm install
npm run build

Then run the project:

npm run dev