"googlemock/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "93bfdde0eeac83fb51b856dc4dc9c38c408b0ee0"
Unverified Commit 52b2838e authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

arm64 修改集成openclash内核的逻辑

parent edb1ecd5
......@@ -54,18 +54,6 @@ jobs:
fi
fi
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Building armsr-armv8 QEMU ImmortalWrt
run: |
profiles="${{ github.event.inputs.profile }}"
......
......@@ -40,18 +40,6 @@ jobs:
- name: Set executable permissions
run: |
chmod +x ${{ github.workspace }}/raspberrypi/23.05.4/build.sh
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Build raspberrypi ImmortalWrt 23.05.4
run: |
......
......@@ -41,18 +41,6 @@ jobs:
run: |
chmod +x ${{ github.workspace }}/raspberrypi/24.10/build.sh
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Build raspberrypi ImmortalWrt 24.10.2
run: |
profiles="${{ github.event.inputs.profile }}"
......
......@@ -58,19 +58,7 @@ jobs:
exit 1
fi
fi
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Build Gl-iNet ImmortalWrt 23.05.4
run: |
......
......@@ -56,20 +56,7 @@ jobs:
echo "Error: PPPoE account and password must be provided when PPPoE is enabled!"
exit 1
fi
fi
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
fi
- name: Build Gl-iNet ImmortalWrt 24.10.2
run: |
......
......@@ -71,18 +71,6 @@ jobs:
exit 1
fi
fi
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Building Rockchip ImmortalWrt
run: |
......
......@@ -92,17 +92,6 @@ jobs:
fi
fi
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Building Rockchip ImmortalWrt
run: |
......
......@@ -44,18 +44,6 @@ jobs:
run: |
chmod +x ${{ github.workspace }}/sunxi-cortexa53/build.sh
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Build sunxi-cortexa53 ImmpotalWrt 23.05.4
run: |
profiles="${{ github.event.inputs.profile }}"
......
......@@ -46,18 +46,6 @@ jobs:
run: |
chmod +x ${{ github.workspace }}/sunxi-cortexa53/build.sh
- name: Download Clash Meta, GeoIP, and GeoSite
run: |
PLATFORM="arm64"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-${PLATFORM}.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
- name: Build sunxi-cortexa53 ImmpotalWrt 24.10.2
run: |
profiles="${{ github.event.inputs.profile }}"
......
......@@ -45,6 +45,22 @@ PACKAGES="$PACKAGES fdisk"
PACKAGES="$PACKAGES script-utils"
PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGES"
......
......@@ -48,6 +48,21 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
......@@ -47,6 +47,21 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
......@@ -36,6 +36,21 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGES"
......
......@@ -39,6 +39,22 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
......@@ -45,6 +45,23 @@ PACKAGES="$PACKAGES fdisk"
PACKAGES="$PACKAGES script-utils"
PACKAGES="$PACKAGES luci-i18n-samba4-zh-cn"
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGES"
......
......@@ -90,6 +90,22 @@ PACKAGES="$PACKAGES luci-i18n-dufs-zh-cn"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGES"
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
make image PROFILE=$PROFILE PACKAGES="$PACKAGES" FILES="/home/build/immortalwrt/files" ROOTFS_PARTSIZE=$ROOTFS_PARTSIZE
if [ $? -ne 0 ]; then
......
......@@ -38,6 +38,20 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
......@@ -35,6 +35,20 @@ if [ "$INCLUDE_DOCKER" = "yes" ]; then
echo "Adding package: luci-i18n-dockerman-zh-cn"
fi
# 若构建openclash 则添加内核
if echo "$PACKAGES" | grep -q "luci-app-openclash"; then
echo "✅ 已选择 luci-app-openclash,添加 openclash core"
mkdir -p files/etc/openclash/core
# Download clash_meta
META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz"
wget -qO- $META_URL | tar xOvz > files/etc/openclash/core/clash_meta
chmod +x files/etc/openclash/core/clash_meta
# Download GeoIP and GeoSite
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -O files/etc/openclash/GeoIP.dat
wget -q https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat -O files/etc/openclash/GeoSite.dat
else
echo "⚪️ 未选择 luci-app-openclash"
fi
# 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment