"csrc/vscode:/vscode.git/clone" did not exist on "e48b5b0de2892e47a6534920e9b2981859d9361c"
Unverified Commit 29dd4e81 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Update build.sh

parent ba4cf17c
...@@ -16,30 +16,25 @@ else ...@@ -16,30 +16,25 @@ else
fi fi
# 定义所需安装的包列表 # 定义所需安装的包列表
PACKAGES=( PACKAGES="\
curl curl \
luci-i18n-firewall-zh-cn luci-i18n-firewall-zh-cn \
luci-i18n-filebrowser-zh-cn luci-i18n-filebrowser-zh-cn \
luci-app-argon-config luci-app-argon-config \
luci-i18n-argon-config-zh-cn luci-i18n-argon-config-zh-cn \
luci-i18n-opkg-zh-cn luci-i18n-opkg-zh-cn \
luci-i18n-ttyd-zh-cn luci-i18n-ttyd-zh-cn \
luci-i18n-passwall-zh-cn luci-i18n-passwall-zh-cn \
luci-app-openclash luci-app-openclash \
luci-i18n-homeproxy-zh-cn luci-i18n-homeproxy-zh-cn \
openssh-sftp-server openssh-sftp-server \
luci-i18n-dockerman-zh-cn luci-i18n-dockerman-zh-cn"
)
# 将包列表转换为字符串
PACKAGE_LIST="${PACKAGES[*]}"
# 构建镜像 # 构建镜像
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:" echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGE_LIST" echo "$PACKAGES"
make image PROFILE="generic" PACKAGES="$PACKAGES" FILES="/home/build/immortalwrt/files" ROOTFS_PARTSIZE="2048"
make image PROFILE="generic" PACKAGES="$PACKAGE_LIST" FILES="/home/build/immortalwrt/files" ROOTFS_PARTSIZE="2048"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "$(date '+%Y-%m-%d %H:%M:%S') - Error: Build failed!" echo "$(date '+%Y-%m-%d %H:%M:%S') - Error: Build failed!"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment