Add README & Global Build Script for WASM

This commit is contained in:
xhacker-zzz 2022-11-21 04:55:43 +08:00
parent 63dc5c125c
commit ddceb2ede8
2 changed files with 25 additions and 0 deletions

View File

@ -67,6 +67,8 @@ docker run --name unlock-music -d -p 8080:80 ix64/unlock-music
### 自行构建 ### 自行构建
#### JS部分
- 环境要求 - 环境要求
- nodejs (v16.x) - nodejs (v16.x)
- npm - npm
@ -90,3 +92,15 @@ docker run --name unlock-music -d -p 8080:80 ix64/unlock-music
```sh ```sh
npm run make-extension npm run make-extension
``` ```
#### WASM部分
- 环境要求
- Linux
- python3
- 运行此目录下的build-wasm
```sh
bash build-wasm
```

11
build-wasm Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
pushd ./src/QmcWasm
bash build-wasm
popd
pushd ./src/QmcWasm
bash build-wasm
popd