Skip to content

Commit d6703b5

Browse files
committed
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.
1 parent 96c7139 commit d6703b5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package-wasm.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ apt update
77
apt install python3 -y
88

99
cd opencv4/
10-
mkdir opencv-build-wasm && cd opencv-build-wasm
10+
mkdir opencv-build-wasm
11+
cd opencv-build-wasm
1112
python3 ../platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/emsdk/upstream/emscripten
1213

1314
cd /usr/src/app
14-
mkdir build-wasm && cd build-wasm
15+
mkdir build-wasm
16+
cd build-wasm
1517
emcmake cmake .. -DUSE_WASM=1 -DOPENCV_DIR=/usr/src/app/opencv4
1618
make -j5 install
1719
(cd ../web/ && tar -czvf cimbar.wasm.tar.gz cimbar_js.* index.html main.js)
1820

1921
cd /usr/src/app
20-
mkdir build-asmjs && cd build-asmjs
22+
mkdir build-asmjs
23+
cd build-asmjs
2124
emcmake cmake .. -DUSE_WASM=2 -DOPENCV_DIR=/usr/src/app/opencv4
2225
make -j5 install
2326
(cd ../web/ && zip cimbar.asmjs.zip cimbar_js.js index.html main.js)

0 commit comments

Comments
 (0)