Files
nekoray/libs/build_public_res.sh
arm64v8a c9ed162f81 fix
2023-04-10 11:43:08 +09:00

17 lines
613 B
Bash
Executable File

#!/bin/bash
set -e
source libs/deploy_common.sh
DEST=$DEPLOYMENT/public_res
rm -rf $DEST
mkdir -p $DEST
#### Download geodata ####
curl -fLso $DEST/geoip.dat "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
curl -fLso $DEST/geosite.dat "https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat"
curl -fLso $DEST/geoip.db "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db"
curl -fLso $DEST/geosite.db "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
#### copy res/public ####
cp res/public/* $DEST