File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
8383 # Download GeoIP and GeoSite
8484 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
8585 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
86+ # Download latest openclash Client
87+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
88+ | grep " browser_download_url.*ipk" \
89+ | head -n1 \
90+ | cut -d ' "' -f 4)
91+ echo " OpenClash latest ipk: $URL "
92+ wget " $URL " -P /home/build/immortalwrt/packages/
8693else
8794 echo " ⚪️ 未选择 luci-app-openclash"
8895fi
Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
8989 # Download GeoIP and GeoSite
9090 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
9191 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
92+ # Download latest openclash Client
93+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
94+ | grep " browser_download_url.*ipk" \
95+ | head -n1 \
96+ | cut -d ' "' -f 4)
97+ echo " OpenClash latest ipk: $URL "
98+ wget " $URL " -P /home/build/immortalwrt/packages/
9299else
93100 echo " ⚪️ 未选择 luci-app-openclash"
94101fi
Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
7070 # Download GeoIP and GeoSite
7171 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
7272 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
73+ # Download latest openclash Client
74+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
75+ | grep " browser_download_url.*ipk" \
76+ | head -n1 \
77+ | cut -d ' "' -f 4)
78+ echo " OpenClash latest ipk: $URL "
79+ wget " $URL " -P /home/build/immortalwrt/packages/
7380else
7481 echo " ⚪️ 未选择 luci-app-openclash"
7582fi
Original file line number Diff line number Diff line change @@ -100,6 +100,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
100100 # Download GeoIP and GeoSite
101101 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
102102 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
103+ # Download latest openclash Client
104+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
105+ | grep " browser_download_url.*ipk" \
106+ | head -n1 \
107+ | cut -d ' "' -f 4)
108+ echo " OpenClash latest ipk: $URL "
109+ wget " $URL " -P /home/build/immortalwrt/packages/
103110else
104111 echo " ⚪️ 未选择 luci-app-openclash"
105112fi
Original file line number Diff line number Diff line change @@ -90,6 +90,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
9090 # Download GeoIP and GeoSite
9191 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
9292 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
93+ # Download latest openclash Client
94+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
95+ | grep " browser_download_url.*ipk" \
96+ | head -n1 \
97+ | cut -d ' "' -f 4)
98+ echo " OpenClash latest ipk: $URL "
99+ wget " $URL " -P /home/build/immortalwrt/packages/
93100else
94101 echo " ⚪️ 未选择 luci-app-openclash"
95102fi
Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
7474 # Download GeoIP and GeoSite
7575 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
7676 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
77+ # Download latest openclash Client
78+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
79+ | grep " browser_download_url.*ipk" \
80+ | head -n1 \
81+ | cut -d ' "' -f 4)
82+ echo " OpenClash latest ipk: $URL "
83+ wget " $URL " -P /home/build/immortalwrt/packages/
7784else
7885 echo " ⚪️ 未选择 luci-app-openclash"
7986fi
Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
8484 # Download GeoIP and GeoSite
8585 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
8686 wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
87+ # Download latest openclash Client
88+ URL=$( curl -s https://api.github.com/repos/vernesong/OpenClash/releases/latest \
89+ | grep " browser_download_url.*ipk" \
90+ | head -n1 \
91+ | cut -d ' "' -f 4)
92+ echo " OpenClash latest ipk: $URL "
93+ wget " $URL " -P /home/build/immortalwrt/packages/
8794else
8895 echo " ⚪️ 未选择 luci-app-openclash"
8996fi
You can’t perform that action at this time.
0 commit comments