Skip to content

Commit

Permalink
feat: banner_append
Browse files Browse the repository at this point in the history
  • Loading branch information
fukiame committed Aug 29, 2023
1 parent 341a78d commit 37ed8c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down

0 comments on commit 37ed8c9

Please sign in to comment.