Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fanck0605 authored Oct 7, 2024
1 parent 069e275 commit f07a40c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ download_clash_files() {
local -r CLASH_HOME=$WORKING_DIR/etc/openclash
local -r CPU_ARCH=$2

local -r GEOIP_DOWNLOAD_URL=https://github.com/alecthw/mmdb_china_ip_list/raw/release/lite/Country.mmdb

local CLASH_DOWNLOAD_URLS
readarray -t CLASH_DOWNLOAD_URLS <<<"$(fetch_clash_download_urls "$CPU_ARCH")"
readonly CLASH_DOWNLOAD_URLS

mkdir -p "$CLASH_HOME"
echo "Downloading GeoIP database..."
curl -Lf "$GEOIP_DOWNLOAD_URL" -o "$CLASH_HOME"/Country.mmdb
curl -Lf "https://github.com/alecthw/mmdb_china_ip_list/raw/release/Country.mmdb" -o "$CLASH_HOME"/Country.mmdb
curl -Lf "https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geoip.dat" -o "$CLASH_HOME"/GeoIP.dat
curl -Lf "https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geosite.dat" -o "$CLASH_HOME"/GeoSite.dat

local -r download_dir=$(mktemp -d)
echo "Download ${CLASH_DOWNLOAD_URLS[0]}"
Expand Down

0 comments on commit f07a40c

Please sign in to comment.