From a62cc1307a3bd23e910378dac5b1388c93e17063 Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Thu, 23 Oct 2025 10:52:05 +0800 Subject: [PATCH] Update build.sh --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index e80044c..c31a9a4 100644 --- a/build.sh +++ b/build.sh @@ -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