diff --git a/example/web/build-tdlib.sh b/example/web/build-tdlib.sh index 4817270e..dff225c7 100755 --- a/example/web/build-tdlib.sh +++ b/example/web/build-tdlib.sh @@ -24,20 +24,17 @@ OPENSSL_OPTIONS="-DOPENSSL_FOUND=1 \ -DOPENSSL_LIBRARIES=\"$OPENSSL_SSL_LIBRARY;$OPENSSL_CRYPTO_LIBRARY\" \ -DOPENSSL_VERSION=\"1.1.0j\"" -pushd . cd build/wasm eval emconfigure cmake $TD_ROOT $OPENSSL_OPTIONS || exit 1 -popd +cd ../.. -pushd . cd build/asmjs eval emconfigure cmake $TD_ROOT $OPENSSL_OPTIONS -DASMJS=1 || exit 1 -popd +cd ../.. -pushd . cd build/generate cmake $TD_ROOT -GNinja || exit 1 -popd +cd ../.. echo "Generating TDLib autogenerated source files..." cmake --build build/generate --target prepare_cross_compiling || exit 1 diff --git a/example/web/build-tdweb.sh b/example/web/build-tdweb.sh index a32c3628..63461fcc 100755 --- a/example/web/build-tdweb.sh +++ b/example/web/build-tdweb.sh @@ -1,6 +1,6 @@ #!/bin/sh -pushd . cd tdweb npm install || exit 1 npm run build || exit 1 +cd ..