Update build.sh

This commit is contained in:
2025-10-23 10:52:05 +08:00
committed by GitHub
parent 9d5a738a0a
commit a62cc1307a

View File

@@ -479,6 +479,10 @@ compile_toolchain() {
compile_openwrt() {
print_info "开始编译 OpenWRT..."
local starttime=$(date +'%Y-%m-%d %H:%M:%S')
echo -e "${BLUE_COLOR}├─ 更新 os-release 构建日期...${RESET}"
sed -i "/BUILD_DATE/d" package/base-files/files/usr/lib/os-release
sed -i "/BUILD_ID/aBUILD_DATE=\"$CURRENT_DATE\"" package/base-files/files/usr/lib/os-release
echo -e "${BLUE_COLOR}├─ 执行 make 编译...${RESET}"
if make -j"$CPU_CORES" IGNORE_ERRORS="n m"; then