From ccb4458429ce2ce1688ee0392eb786226106f408 Mon Sep 17 00:00:00 2001 From: xhacker-zzz <959220793@qq.com> Date: Mon, 21 Nov 2022 04:55:43 +0800 Subject: [PATCH] Add README & Global Build Script for WASM --- README.md | 14 ++++++++++++++ build-wasm | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 build-wasm diff --git a/README.md b/README.md index d3760f7..4549c6b 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ docker run --name unlock-music -d -p 8080:80 ix64/unlock-music ### 自行构建 +#### JS部分 + - 环境要求 - nodejs (v16.x) - npm @@ -90,3 +92,15 @@ docker run --name unlock-music -d -p 8080:80 ix64/unlock-music ```sh npm run make-extension ``` + +#### WASM部分 + +- 环境要求 + - Linux + - python3 + +- 运行此目录下的build-wasm + + ```sh + bash build-wasm + ``` diff --git a/build-wasm b/build-wasm new file mode 100644 index 0000000..e5273a3 --- /dev/null +++ b/build-wasm @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -e + +pushd ./src/QmcWasm +bash build-wasm +popd + +pushd ./src/QmcWasm +bash build-wasm +popd