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
0c767f1b
Unverified
Commit
0c767f1b
authored
Jul 18, 2025
by
wukongdaily
Committed by
GitHub
Jul 18, 2025
Browse files
树莓派 修改自定义软件包的位置
parent
213e7732
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
10 deletions
+53
-10
.github/workflows/build-RaspBerryPi-23.05.4.yml
.github/workflows/build-RaspBerryPi-23.05.4.yml
+1
-0
.github/workflows/build-RaspBerryPi-24.10.2.yml
.github/workflows/build-RaspBerryPi-24.10.2.yml
+1
-0
raspberrypi/23.05.4/build.sh
raspberrypi/23.05.4/build.sh
+25
-4
raspberrypi/24.10/build.sh
raspberrypi/24.10/build.sh
+26
-6
No files found.
.github/workflows/build-RaspBerryPi-23.05.4.yml
View file @
0c767f1b
...
...
@@ -70,6 +70,7 @@ jobs:
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/raspberrypi/23.05.4/build.sh:/home/build/openwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
...
...
.github/workflows/build-RaspBerryPi-24.10.2.yml
View file @
0c767f1b
...
...
@@ -70,6 +70,7 @@ jobs:
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/raspberrypi/24.10/build.sh:/home/build/openwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
...
...
raspberrypi/23.05.4/build.sh
View file @
0c767f1b
#!/bin/bash
source
shell/custom-packages.sh
echo
"第三方软件包:
$CUSTOM_PACKAGES
"
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
echo
"Include Docker:
$INCLUDE_DOCKER
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTSIZE
"
if
[
-z
"
$CUSTOM_PACKAGES
"
]
;
then
echo
"⚪️ 未选择 任何第三方软件包"
else
# 下载 run 文件仓库
echo
"🔄 正在同步第三方软件仓库 Cloning run file repo..."
git clone
--depth
=
1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
mkdir
-p
/home/build/immortalwrt/extra-packages
cp
-r
/tmp/store-run-repo/run/arm64/
*
/home/build/immortalwrt/extra-packages/
echo
"✅ Run files copied to extra-packages:"
ls
-lh
/home/build/immortalwrt/extra-packages/
*
.run
# 解压并拷贝ipk到packages目录
sh shell/prepare-packages.sh
ls
-lah
/home/build/immortalwrt/packages/
# 添加架构优先级信息
sed
-i
'1i\
arch aarch64_generic 10\n\
arch aarch64_cortex-a53 15'
repositories.conf
fi
# 输出调试信息
...
...
@@ -25,10 +47,9 @@ 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"
# ======== shell/custom-packages.sh =======
# 合并imm仓库以外的第三方插件
PACKAGES
=
"
$PACKAGES
$CUSTOM_PACKAGES
"
# 判断是否需要编译 Docker 插件
if
[
"
$INCLUDE_DOCKER
"
=
"yes"
]
;
then
...
...
raspberrypi/24.10/build.sh
View file @
0c767f1b
#!/bin/bash
source
shell/custom-packages.sh
echo
"第三方软件包:
$CUSTOM_PACKAGES
"
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
echo
"Include Docker:
$INCLUDE_DOCKER
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTSIZE
"
if
[
-z
"
$CUSTOM_PACKAGES
"
]
;
then
echo
"⚪️ 未选择 任何第三方软件包"
else
# 下载 run 文件仓库
echo
"🔄 正在同步第三方软件仓库 Cloning run file repo..."
git clone
--depth
=
1 https://github.com/wukongdaily/store.git /tmp/store-run-repo
# 拷贝 run/arm64 下所有 run 文件和ipk文件 到 extra-packages 目录
mkdir
-p
/home/build/immortalwrt/extra-packages
cp
-r
/tmp/store-run-repo/run/arm64/
*
/home/build/immortalwrt/extra-packages/
echo
"✅ Run files copied to extra-packages:"
ls
-lh
/home/build/immortalwrt/extra-packages/
*
.run
# 解压并拷贝ipk到packages目录
sh shell/prepare-packages.sh
ls
-lah
/home/build/immortalwrt/packages/
# 添加架构优先级信息
sed
-i
'1i\
arch aarch64_generic 10\n\
arch aarch64_cortex-a53 15'
repositories.conf
fi
# 输出调试信息
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
...
...
@@ -26,12 +49,9 @@ 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"
# ======== shell/custom-packages.sh =======
# 合并imm仓库以外的第三方插件
PACKAGES
=
"
$PACKAGES
$CUSTOM_PACKAGES
"
# 判断是否需要编译 Docker 插件
if
[
"
$INCLUDE_DOCKER
"
=
"yes"
]
;
then
...
...
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