Skip to content

Commit 22fd299

Browse files
committed
Update KSUN Base Version
1 parent 62beaea commit 22fd299

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/actions/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,15 @@ runs:
622622
fi
623623
git submodule update --init --recursive
624624
cd KernelSU-Next/kernel
625-
BASE_VERSION=10200
626-
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
625+
COMMITS_COUNT=$(/usr/bin/git rev-list --count HEAD)
626+
627+
if [ $COMMITS_COUNT -lt 2684 ]; then
628+
BASE_VERSION=10200
629+
else
630+
BASE_VERSION=30000
631+
fi
632+
633+
KSU_VERSION=$(expr $COMMITS_COUNT "+" $BASE_VERSION)
627634
sed -i "s/DKSU_VERSION=11998/DKSU_VERSION=${KSU_VERSION}/" Makefile
628635
629636
cd ..

0 commit comments

Comments
 (0)