From a9bd6e4834772aeb817404aeeb7222005a5d3873 Mon Sep 17 00:00:00 2001 From: sz Date: Sat, 3 Feb 2024 07:08:30 -0600 Subject: [PATCH] Less &&, so we can re-run the package-wasm script with impunity There are more efficient ways to do incremental builds, but this is convenient. --- package-wasm.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package-wasm.sh b/package-wasm.sh index 58886a61..9d9894b6 100644 --- a/package-wasm.sh +++ b/package-wasm.sh @@ -7,17 +7,20 @@ apt update apt install python3 -y cd opencv4/ -mkdir opencv-build-wasm && cd opencv-build-wasm +mkdir opencv-build-wasm +cd opencv-build-wasm python3 ../platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/emsdk/upstream/emscripten cd /usr/src/app -mkdir build-wasm && cd build-wasm +mkdir build-wasm +cd build-wasm emcmake cmake .. -DUSE_WASM=1 -DOPENCV_DIR=/usr/src/app/opencv4 make -j5 install (cd ../web/ && tar -czvf cimbar.wasm.tar.gz cimbar_js.* index.html main.js) cd /usr/src/app -mkdir build-asmjs && cd build-asmjs +mkdir build-asmjs +cd build-asmjs emcmake cmake .. -DUSE_WASM=2 -DOPENCV_DIR=/usr/src/app/opencv4 make -j5 install (cd ../web/ && zip cimbar.asmjs.zip cimbar_js.js index.html main.js)