fix autoupdate config target

This commit is contained in:
xopenwrt 2026-06-29 21:33:49 +08:00
parent 5f897afd41
commit b327ffddd6
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
# AI Modification Log: Autoupdate Config Target
Date: 2026-06-29
## Change
- Updated `Scripts/AutoBuild_Function.sh` so `CONFIG_PACKAGE_luci-app-autoupdate=y` is appended to `${CONFIG_TEMP}`.
## Reason
`Firmware_Diy_Main` runs after changing into the OpenWrt worktree. Appending to `${CONFIG_FILE}` can create or edit a file named after the config profile inside `openwrt`; `${CONFIG_TEMP}` points to the active `.config` generated for the build.

View File

@ -130,7 +130,7 @@ Firmware_Diy_Main() {
if [[ ${AutoBuild_Features} == true ]] if [[ ${AutoBuild_Features} == true ]]
then then
AddPackage git other AutoBuild-Packages xopenwrt master AddPackage git other AutoBuild-Packages xopenwrt master
echo -e "\nCONFIG_PACKAGE_luci-app-autoupdate=y" >> ${CONFIG_FILE} echo -e "\nCONFIG_PACKAGE_luci-app-autoupdate=y" >> ${CONFIG_TEMP}
for i in ${GITHUB_ENV} $(PKG_Finder d package AutoBuild-Packages)/autoupdate/files/etc/autoupdate/default for i in ${GITHUB_ENV} $(PKG_Finder d package AutoBuild-Packages)/autoupdate/files/etc/autoupdate/default
do do
cat >> ${i} <<EOF cat >> ${i} <<EOF