Buckets:
localhost1978/localhost / LOCALHOST1978 /Modules /SSK_Providers /Vendor /td /example /web /README.md
TDLib Web example
This is an example of building TDLib for browsers using Emscripten.
These scripts build TDLib and create an NPM package tdweb.
You need a Unix shell with sed, tar and wget utilities to run the provided scripts.
Building tdweb NPM package
- Install the 3.1.1 emsdk, which is known to work. Do not use the system-provided
emscriptenpackage, because it contains a too old emsdk version. - Install all
TDLibbuild dependencies described in Building andsed,tarandwgetutilities. - Run
source ./emsdk_env.shfromemsdkdirectory to set up the correct build environment. - On
macOS, install thecoreutilsHomebrew package and replacerealpathin scripts withgrealpath:
brew install coreutils
sed -i.bak 's/[(]realpath/(grealpath/g' build-tdlib.sh
- Run build scripts in the following order:
cd <path to TDLib sources>/example/web
./build-openssl.sh
./build-tdlib.sh
./copy-tdlib.sh
./build-tdweb.sh
- The built package is now located in the
tdwebdirectory.
Using tdweb NPM package
Xet Storage Details
- Size:
- 1.47 kB
- Xet hash:
- 89b087ce46eba7bf29c57800ec754ad591521276c3ee8d35b59224c1a0ff4f69
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.