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
34bc424f
Unverified
Commit
34bc424f
authored
Feb 08, 2025
by
wukongdaily
Committed by
GitHub
Feb 08, 2025
Browse files
fix package for glinet 24.10.0
parent
3a4a2183
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
1 deletion
+63
-1
.github/workflows/build-glinet-24.10.0.yml
.github/workflows/build-glinet-24.10.0.yml
+1
-1
mediatek-filogic/build-24.sh
mediatek-filogic/build-24.sh
+62
-0
No files found.
.github/workflows/build-glinet-24.10.0.yml
View file @
34bc424f
...
...
@@ -81,7 +81,7 @@ jobs:
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/glinet:/home/build/immortalwrt/files/etc/uci-defaults" \
-v "${{ github.workspace }}/mediatek-filogic/build.sh:/home/build/immortalwrt/build.sh" \
-v "${{ github.workspace }}/mediatek-filogic/build
-24
.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
...
...
mediatek-filogic/build-24.sh
0 → 100644
View file @
34bc424f
#!/bin/bash
# 该文件实际为imagebuilder容器内的build.sh
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
echo
"Include Docker:
$INCLUDE_DOCKER
"
echo
"Create pppoe-settings"
mkdir
-p
/home/build/immortalwrt/files/etc/config
# 创建pppoe配置文件 yml传入pppoe变量————>pppoe-settings文件
cat
<<
EOF
> /home/build/immortalwrt/files/etc/config/pppoe-settings
enable_pppoe=
${
ENABLE_PPPOE
}
pppoe_account=
${
PPPOE_ACCOUNT
}
pppoe_password=
${
PPPOE_PASSWORD
}
EOF
echo
"cat pppoe-settings"
cat
/home/build/immortalwrt/files/etc/config/pppoe-settings
# 输出调试信息
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
# 定义所需安装的包列表 下列插件你都可以自行删减
PACKAGES
=
""
PACKAGES
=
"
$PACKAGES
curl"
PACKAGES
=
"
$PACKAGES
luci-i18n-firewall-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-filebrowser-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-app-argon-config"
PACKAGES
=
"
$PACKAGES
luci-i18n-argon-config-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-diskman-zh-cn"
#24.10.0
PACKAGES
=
"
$PACKAGES
luci-i18n-package-manager-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-ttyd-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-passwall-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-app-openclash"
PACKAGES
=
"
$PACKAGES
luci-i18n-homeproxy-zh-cn"
PACKAGES
=
"
$PACKAGES
openssh-sftp-server"
# 增加几个必备组件 方便用户安装iStore
PACKAGES
=
"
$PACKAGES
fdisk"
PACKAGES
=
"
$PACKAGES
script-utils"
PACKAGES
=
"
$PACKAGES
luci-i18n-samba4-zh-cn"
# 判断是否需要编译 Docker 插件
if
[
"
$INCLUDE_DOCKER
"
=
"yes"
]
;
then
PACKAGES
=
"
$PACKAGES
luci-i18n-dockerman-zh-cn"
echo
"Adding package: luci-i18n-dockerman-zh-cn"
fi
# 构建镜像
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Building image with the following packages:"
echo
"
$PACKAGES
"
make image
PROFILE
=
$PROFILE
PACKAGES
=
"
$PACKAGES
"
FILES
=
"/home/build/immortalwrt/files"
if
[
$?
-ne
0
]
;
then
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Error: Build failed!"
exit
1
fi
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Build completed successfully."
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