ClashX/install_dependency.sh

19 lines
528 B
Bash
Raw Normal View History

2019-10-02 21:43:18 +08:00
#!/bin/bash
set -eu
2020-04-07 15:40:18 +08:00
echo "Build Clash core"
cd ClashX/goClash
python3 build_clash.py
2020-03-13 18:04:24 +08:00
echo "Pod install"
2020-04-07 15:40:18 +08:00
cd ../..
2020-03-13 18:04:24 +08:00
pod install
2019-10-02 21:43:18 +08:00
echo "delete old files"
rm -f ./ClashX/Resources/Country.mmdb
rm -rf ./ClashX/Resources/dashboard
rm -f GeoLite2-Country.*
echo "install mmdb"
2020-11-14 14:15:46 +08:00
wget https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb
mv Country.mmdb ./ClashX/Resources/Country.mmdb
2019-10-02 21:43:18 +08:00
echo "install dashboard"
cd ClashX/Resources
git clone -b gh-pages https://github.com/Dreamacro/clash-dashboard.git dashboard