Skip to content

Commit 19b5885

Browse files
committed
Update KSU Next Version
1 parent 3de1e08 commit 19b5885

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ jobs:
9595
curl -LSs "https://raw.githubusercontent.com/rifsxd/KernelSU-Next/next/kernel/setup.sh" | bash -s next
9696
#cd ./KernelSU-Next/kernel
9797
#sed -i 's/ccflags-y += -DKSU_VERSION=16/ccflags-y += -DKSU_VERSION=12000/' ./Makefile
98-
KSU_VERSION=$(cd ./KernelSU-Next/kernel && git describe --tags --abbrev=0)
99-
echo "KSUVER=${KSU_VERSION}" >> $GITHUB_ENV
98+
git submodule update --init --recursive
99+
cd KernelSU-Next/kernel
100+
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 10200)
101+
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
102+
sed -i "s/DKSU_VERSION=11998/DKSU_VERSION=${KSU_VERSION}/" Makefile
100103
101104
- name: Apply SUSFS Patches
102105
run: |

0 commit comments

Comments
 (0)