diff --git a/openwrt/build.sh b/openwrt/build.sh index 81b1173e8..37f835c9b 100644 --- a/openwrt/build.sh +++ b/openwrt/build.sh @@ -472,9 +472,9 @@ if [ "$platform" = "x86_64" ]; then if [ "$1" = "rc2" ]; then mkdir -p ota if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal + OTA_URL="https://x86.cooluc.com/d/minimal/openwrt-23.05" else - BUILD_TYPE=releases + OTA_URL="https://github.com/sbwml/builder/releases/download" fi VERSION=$(sed 's/v//g' version.txt) SHA256=$(sha256sum bin/targets/x86/64*/*-generic-squashfs-combined-efi.img.gz | awk '{print $1}') @@ -484,7 +484,7 @@ if [ "$platform" = "x86_64" ]; then { "build_date": "$CURRENT_DATE", "sha256sum": "$SHA256", - "url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz" + "url": "$OTA_URL/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz" } ] } @@ -538,9 +538,9 @@ elif [ "$platform" = "bcm53xx" ]; then if [ "$1" = "rc2" ]; then mkdir -p ota if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal + OTA_URL="https://r8500.cooluc.com/d/minimal/openwrt-23.05" else - BUILD_TYPE=releases + OTA_URL="https://github.com/sbwml/builder/releases/download" fi VERSION=$(sed 's/v//g' version.txt) SHA256=$(sha256sum bin/targets/bcm53xx/generic/*-bcm53xx-generic-netgear_r8500-squashfs.chk | awk '{print $1}') @@ -550,7 +550,7 @@ elif [ "$platform" = "bcm53xx" ]; then { "build_date": "$CURRENT_DATE", "sha256sum": "$SHA256", - "url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk" + "url": "$OTA_URL/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk" } ] } @@ -570,13 +570,10 @@ else # OTA json if [ "$1" = "rc2" ]; then mkdir -p ota - if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal - else - BUILD_TYPE=releases - fi + OTA_URL="https://github.com/sbwml/builder/releases/download" VERSION=$(sed 's/v//g' version.txt) if [ "$model" = "nanopi-r4s" ]; then + [ "$MINIMAL_BUILD" = "y" ] && OTA_URL="https://r4s.cooluc.com/d/minimal/openwrt-23.05" SHA256=$(sha256sum bin/targets/rockchip/armv8*/*-squashfs-sysupgrade.img.gz | awk '{print $1}') cat > ota/fw.json < ota/fw.json < feeds/packages/utils/watchcat/files/watchcat.config