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
824959c5
Unverified
Commit
824959c5
authored
Dec 05, 2024
by
wukongdaily
Committed by
GitHub
Dec 05, 2024
Browse files
Update build.sh
parent
a35ec513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
18 deletions
+48
-18
build.sh
build.sh
+48
-18
No files found.
build.sh
View file @
824959c5
#!/bin/bash
#!/bin/bash
echo
"print makfile%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
cat
/home/build/immortalwrt/target/linux/x86/Makefile
# 输出调试信息
PACKAGES
=
""
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
PACKAGES
=
"
$PACKAGES
curl"
PACKAGES
=
"
$PACKAGES
luci-i18n-firewall-zh-cn"
# 定义路径变量
PACKAGES
=
"
$PACKAGES
luci-i18n-filebrowser-zh-cn"
MAKEFILE_PATH
=
"/home/build/immortalwrt/target/linux/x86/Makefile"
PACKAGES
=
"
$PACKAGES
luci-app-argon-config"
PACKAGES
=
"
$PACKAGES
luci-i18n-argon-config-zh-cn"
# 打印 Makefile 内容
PACKAGES
=
"
$PACKAGES
luci-i18n-opkg-zh-cn"
if
[
-f
"
$MAKEFILE_PATH
"
]
;
then
PACKAGES
=
"
$PACKAGES
luci-i18n-ttyd-zh-cn"
echo
"Printing Makefile:"
PACKAGES
=
"
$PACKAGES
luci-i18n-passwall-zh-cn"
cat
"
$MAKEFILE_PATH
"
PACKAGES
=
"
$PACKAGES
luci-app-openclash"
else
PACKAGES
=
"
$PACKAGES
luci-i18n-homeproxy-zh-cn"
echo
"Error: Makefile not found at
$MAKEFILE_PATH
"
PACKAGES
=
"
$PACKAGES
openssh-sftp-server"
exit
1
PACKAGES
=
"
$PACKAGES
luci-i18n-dockerman-zh-cn"
fi
# 定义所需安装的包列表
make image
PACKAGES
=
"
$PACKAGES
"
ROOTFS_PARTSIZE
=
"2048"
PACKAGES
=(
curl
luci-i18n-firewall-zh-cn
luci-i18n-filebrowser-zh-cn
luci-app-argon-config
luci-i18n-argon-config-zh-cn
luci-i18n-opkg-zh-cn
luci-i18n-ttyd-zh-cn
luci-i18n-passwall-zh-cn
luci-app-openclash
luci-i18n-homeproxy-zh-cn
openssh-sftp-server
luci-i18n-dockerman-zh-cn
)
# 将包列表转换为字符串
PACKAGE_LIST
=
"
${
PACKAGES
[*]
}
"
# 构建镜像
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Building image with the following packages:"
echo
"
$PACKAGE_LIST
"
make image
PACKAGES
=
"
$PACKAGE_LIST
"
FILES
=
"/home/build/immortalwrt/files"
ROOTFS_PARTSIZE
=
"2048"
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