From 37ed8c9986362f1f4e84abcf7ce9bea2c5bbc816 Mon Sep 17 00:00:00 2001 From: fukiame Date: Tue, 29 Aug 2023 22:26:17 +0700 Subject: [PATCH] feat: banner_append --- .github/workflows/main.yml | 2 ++ build.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 601a56a..0514285 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -85,6 +85,8 @@ jobs: curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash - echo KSU_GIT_VERSION=$(cd KernelSU && git rev-list --count HEAD) >> $GITHUB_ENV echo KERNELSU_VERSION=$(($KSU_GIT_VERSION + 10000 + 200)) >> $GITHUB_ENV + + echo "includes KernelSU ver $KERNELSU_VERSION" >> banner_append for patch_file in ../ksu_patches/*.patch ; do patch -p1 --no-backup-if-mismatch < "$patch_file" diff --git a/build.sh b/build.sh index 2e7f5b4..3235d3a 100644 --- a/build.sh +++ b/build.sh @@ -29,6 +29,9 @@ pack() { cp -af "${out_image}" "${zipper}" cp -af "${out_dtb}" "${zipper}/dtb" cp -af "${out_dtbo}" "${zipper}/dtbo.img" + if [[ -e ${maindir}/banner_append ]]; then + cat ${maindir}/banner_append >> ${zipper}/banner + fi zip -r9 "$1" ./* -x .git README.md ./*placeholder cd "${maindir}" }