Minor tdweb script improvements.

GitOrigin-RevId: 719e61f9c872b2c64134c3d10a309042edc68875
This commit is contained in:
levlam 2018-12-24 04:34:19 +03:00
parent b5ca70530e
commit bf8c3f2634
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ cd openssl-$OPENSSL
emconfigure ./Configure linux-generic32 no-shared no-dso no-engine no-unit-test no-ui || exit 1
sed -i.bak 's/CROSS_COMPILE=.*/CROSS_COMPILE=/g' Makefile || exit 1
sed -i 's/-ldl //g' Makefile || exit 1
sed -i.bak 's/-ldl //g' Makefile || exit 1
echo "Building OpenSSL..."
emmake make depend || exit 1
emmake make -j 4 || exit 1

View File

@ -1,6 +1,6 @@
#!/bin/sh
cd tdweb
cd tdweb || exit 1
npm install || exit 1
npm run build || exit 1
cd ..

View File

@ -1,6 +1,6 @@
#!/bin/sh
DEST=tdweb/src/prebuilt/release/
mkdir -p $DEST
cp build/wasm/td_wasm.js build/wasm/td_wasm.wasm $DEST
cp build/asmjs/td_asmjs.js build/asmjs/td_asmjs.js.mem $DEST
mkdir -p $DEST || exit 1
cp build/wasm/td_wasm.js build/wasm/td_wasm.wasm $DEST || exit 1
cp build/asmjs/td_asmjs.js build/asmjs/td_asmjs.js.mem $DEST || exit 1