2019-10-02 21:43:18 +08:00
|
|
|
#!/bin/bash
|
2020-12-03 22:01:40 +08:00
|
|
|
set -e
|
2020-04-07 15:40:18 +08:00
|
|
|
echo "Build Clash core"
|
2020-12-03 22:01:40 +08:00
|
|
|
|
2021-02-20 10:54:21 +08:00
|
|
|
cd ClashX/goClash
|
|
|
|
python3 build_clash_universal.py
|
|
|
|
cd ../..
|
|
|
|
|
2020-03-13 18:04:24 +08:00
|
|
|
echo "Pod install"
|
2021-09-11 17:00:15 +08:00
|
|
|
bundle install --jobs 4
|
|
|
|
bundle exec 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-12-18 20:40:36 +08:00
|
|
|
curl -LO https://github.com/Dreamacro/maxmind-geoip/releases/latest/download/Country.mmdb
|
|
|
|
gzip Country.mmdb
|
|
|
|
mv Country.mmdb.gz ./ClashX/Resources/Country.mmdb.gz
|
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
|