Closed andyfanybo closed 4 days ago
要对应位置 !!! 要对应位置 !!! 要对应位置 !!!
git clone --depth 1 https://github.com/vernesong/openclash.git OpenClash rm -rf feeds/luci/applications/luci-app-openclash mv OpenClash/luci-app-openclash feeds/luci/applications/luci-app-openclash
curl -sL -m 30 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/core/master/dev/clash-linux-arm64.tar.gz -o /tmp/clash.tar.gz tar zxvf /tmp/clash.tar.gz -C /tmp >/dev/null 2>&1 chmod +x /tmp/clash >/dev/null 2>&1 mkdir -p feeds/luci/applications/luci-app-openclash/root/etc/openclash/core mv /tmp/clash feeds/luci/applications/luci-app-openclash/root/etc/openclash/core/clash >/dev/null 2>&1 rm -rf /tmp/clash.tar.gz >/dev/null 2>&1
curl -sL -m 30 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/core/master/premium/clash-linux-arm64-2023.08.17-13-gdcc8d87.gz -o /tmp/clash.gz gzip -d /tmp/clash.gz /tmp >/dev/null 2>&1 chmod +x /tmp/clash >/dev/null 2>&1 mv /tmp/clash feeds/luci/applications/luci-app-openclash/root/etc/openclash/core/clash_tun >/dev/null 2>&1
curl -sL -m 30 --retry 2 https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz -o /tmp/clash.tar.gz tar zxvf /tmp/clash.tar.gz -C /tmp >/dev/null 2>&1 chmod +x /tmp/clash >/dev/null 2>&1 mv /tmp/clash feeds/luci/applications/luci-app-openclash/root/etc/openclash/core/clash_meta >/dev/null 2>&1 rm -rf /tmp/clash.tar.gz >/dev/null 2>&1
curl -sL -m 30 --retry 2 https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -o /tmp/GeoIP.dat mv /tmp/GeoIP.dat feeds/luci/applications/luci-app-openclash/root/etc/openclash/GeoIP.dat >/dev/null 2>&1
curl -sL -m 30 --retry 2 https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -o /tmp/GeoSite.dat mv /tmp/GeoSite.dat feeds/luci/applications/luci-app-openclash/root/etc/openclash/GeoSite.dat >/dev/null 2>&1
@vi-si 谢谢大佬
Verify Steps
Describe the Feature
399 之前有人问过,但最新源码好像不行了,我的想法是在openclash编译的根目录把meta内核文件放进去:
Describe Alternatives
No response