Skip to content

Commit 0cdc8c9

Browse files
authored
Update build-td-web.sh
1 parent 39cafb0 commit 0cdc8c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-td-web.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ cd /app/emsdk
1313

1414
cd /app/td/example/web
1515
# sed -i '1isource /app/emsdk/emsdk_env.sh' build-openssl.sh
16-
sed -i 's|emcc --check 2>&1 | grep -q " 3.1.1 " || { echo "emcc 3.1.1 check failed. Install emsdk and install and activate 3.1.1 tools. See instruction at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html."; exit 1; }|command -v emcc >/dev/null 2>&1 || { echo "emcc not found. Install emsdk and activate it. See instructions at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html."; exit 1; }|' build_openssl.sh
16+
sed -i "s/| grep -q ' 3.1.1 '//" build_openssl.sh
1717
sed -i 's/emmake make depend || exit 1/emmake make -j $(nproc) depend || exit 1/g' build-openssl.sh
1818
sed -i 's/emmake make -j 4 || exit 1/emmake make -j $(nproc) || exit 1/g' build-openssl.sh
1919

2020
# sed -i '1isource /app/emsdk/emsdk_env.sh' build-tdlib.sh
21-
sed -i 's|emcc --check 2>&1 | grep -q " 3.1.1 " || { echo "emcc 3.1.1 check failed. Install emsdk and install and activate 3.1.1 tools. See instruction at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html."; exit 1; }|command -v emcc >/dev/null 2>&1 || { echo "emcc not found. Install emsdk and activate it. See instructions at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html."; exit 1; }|' build_tdlib.sh
21+
sed -i "s/| grep -q ' 3.1.1 '//" build_tdlib.sh
2222
sed -i 's/cmake --build build\/generate --target prepare_cross_compiling || exit 1/cmake --build build\/generate --target prepare_cross_compiling -- -j $(nproc) || exit 1/g' build-tdlib.sh
2323
sed -i 's/cmake --build build\/wasm --target td_wasm || exit 1/cmake --build build\/wasm --target td_wasm -- -j $(nproc) || exit 1/g' build-tdlib.sh
2424
sed -i 's/cmake --build build\/asmjs --target td_asmjs || exit 1/cmake --build build\/asmjs --target td_asmjs -- -j $(nproc) || exit 1/g' build-tdlib.sh

0 commit comments

Comments
 (0)