#!/bin/sh export ARCH=arm64 export SUBARCH=arm64 if [ -f /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image ]; then cp /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /work/kernel/AIK-Linux/split_img/boot.img-kernel cd /work/kernel/AIK-Linux/ sh /work/kernel/AIK-Linux/repackimg.sh mv /work/kernel/AIK-Linux/image-new.img /work/release/handelinkernel_vxx_nomagisk.img # Anykernel cp /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /work/kernel/AnyKernel3/Image cd /work/kernel/AnyKernel3/ zip -r9 handelinkernel_vxx_anykernel.zip * -x .git README.md *placeholder mv handelinkernel_vxx_anykernel.zip /work/release/handelinkernel_vxx_anykernel.zip echo "Image created and released." else echo "No kernel image in output folder. Build first." fi