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
86c4456c
"...git@developer.sourcefind.cn:jerrrrry/infinicore.git" did not exist on "3ddeae7d52a849d0c08ad41f5e67bd8e1488bc05"
Unverified
Commit
86c4456c
authored
Aug 19, 2025
by
wukongdaily
Committed by
GitHub
Aug 19, 2025
Browse files
Update build.sh
parent
cddfca19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
28 deletions
+18
-28
n1/build.sh
n1/build.sh
+18
-28
No files found.
n1/build.sh
View file @
86c4456c
...
@@ -8,33 +8,8 @@ echo "Starting 99-custom.sh at $(date)" >> $LOGFILE
...
@@ -8,33 +8,8 @@ echo "Starting 99-custom.sh at $(date)" >> $LOGFILE
echo
"Building for profile:
$PROFILE
"
echo
"Building for profile:
$PROFILE
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
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'
)
- 开始构建arm64的rootfs.tar.gz"
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- 开始构建arm64的rootfs.tar.gz"
# 定义所需安装的包列表 下列插件你都可以自行删减
# 定义所需安装的包列表 下列插件你都可以自行删减
PACKAGES
=
""
PACKAGES
=
""
PACKAGES
=
"
$PACKAGES
curl fdisk"
PACKAGES
=
"
$PACKAGES
curl fdisk"
...
@@ -64,8 +39,23 @@ fi
...
@@ -64,8 +39,23 @@ fi
# 斐讯N1 无线
# 斐讯N1 无线
PACKAGES
=
"
$PACKAGES
kmod-brcmfmac wpad-basic-mbedtls iw iwinfo"
PACKAGES
=
"
$PACKAGES
kmod-brcmfmac wpad-basic-mbedtls iw iwinfo"
PACKAGES
=
"
$PACKAGES
perlbase-base perlbase-file perlbase-time perlbase-utf8 perlbase-xsloader"
PACKAGES
=
"
$PACKAGES
perlbase-base perlbase-file perlbase-time perlbase-utf8 perlbase-xsloader"
# 晶晨宝盒
# 晶晨宝盒(追加第三方必备软件 用于写入emmc 请不要注释)
PACKAGES
=
"
$PACKAGES
luci-app-amlogic luci-i18n-amlogic-zh-cn"
CUSTOM_PACKAGES
=
"
$CUSTOM_PACKAGES
luci-app-amlogic luci-i18n-amlogic-zh-cn"
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
# ======== shell/custom-packages.sh =======
# ======== shell/custom-packages.sh =======
# 合并imm仓库以外的第三方插件
# 合并imm仓库以外的第三方插件
...
@@ -98,4 +88,4 @@ if [ $? -ne 0 ]; then
...
@@ -98,4 +88,4 @@ if [ $? -ne 0 ]; then
exit
1
exit
1
fi
fi
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Build completed successfully."
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Build completed successfully."
\ No newline at end of file
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