cargo install wasm-pack --version 0.13
# run on a gui environment
cargo run --release -p gui
export TARGET_DIR= # target directory
(cd wasm && wasm-pack build -t web -d "${TARGET_DIR}/vendor/asm")
(cd wasm && wasm-pack build -t nodejs -d "${TARGET_DIR}/vendor/asm-node")