Use telegram-mtproto v3.2.7 to remove need for fix script

This commit is contained in:
Tulir Asokan
2017-11-30 17:48:21 +02:00
parent ca88182867
commit 9f7e816b36
4 changed files with 47 additions and 43 deletions
-30
View File
@@ -1,30 +0,0 @@
#!/bin/bash
cd node_modules/
echo "=== Removing telegram-mtproto installed by npm ==="
rm -rf telegram-mtproto
echo
echo "=== Cloning telegram-mtproto monorepo ==="
git clone https://github.com/zerobias/telegram-mtproto.git telegram-mtproto-monorepo
cd telegram-mtproto-monorepo
echo
echo "=== Checking out non-broken commit ==="
git checkout 083d8c4cd096502e9c347eb1f4a4191ca939842a
cd packages/telegram-mtproto
echo
echo "=== Installing npm dependencies ==="
npm install
cd ../../..
echo
echo "=== Linking package from monorepo to node_modules ==="
ln -s telegram-mtproto-monorepo/packages/telegram-mtproto
echo
echo "=== All done! Authentication should now be indefinitely persistent ==="