Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
edb1ecd5
Unverified
Commit
edb1ecd5
authored
Jul 13, 2025
by
wukongdaily
Committed by
GitHub
Jul 13, 2025
Browse files
x86-64 修改openclash 集成内核的逻辑
parent
71ade0f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
24 deletions
+30
-24
.github/workflows/build-x86-64-23.05.4.yml
.github/workflows/build-x86-64-23.05.4.yml
+0
-12
.github/workflows/build-x86-64-24.10.2.yml
.github/workflows/build-x86-64-24.10.2.yml
+0
-12
x86-64/24.10/build.sh
x86-64/24.10/build.sh
+15
-0
x86-64/build.sh
x86-64/build.sh
+15
-0
No files found.
.github/workflows/build-x86-64-23.05.4.yml
View file @
edb1ecd5
...
...
@@ -50,18 +50,6 @@ jobs:
exit 1
fi
fi
-
name
:
Download Clash Meta, GeoIP, and GeoSite
run
:
|
PLATFORM="amd64"
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 ImmortalWrt-x86-64-efi
run
:
|
...
...
.github/workflows/build-x86-64-24.10.2.yml
View file @
edb1ecd5
...
...
@@ -51,18 +51,6 @@ jobs:
exit 1
fi
fi
-
name
:
Download Clash Meta, GeoIP, and GeoSite
run
:
|
PLATFORM="amd64"
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 ImmortalWrt-x86-64-efi
run
:
|
...
...
x86-64/24.10/build.sh
View file @
edb1ecd5
...
...
@@ -87,6 +87,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-amd64.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
"
...
...
x86-64/build.sh
View file @
edb1ecd5
...
...
@@ -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-amd64.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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment