Skip to content

Commit

Permalink
Update Build-mKSU-SUSFS.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
morannlx authored Feb 27, 2025
1 parent c8b4609 commit ea3f2bd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/Build-mKSU-SUSFS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ on:
required: true
type: boolean
default: false
MKSU-SKN_ENABLED:
description: "添加 mKSU-SKN"
required: true
type: boolean
default: false
SUSFS_ENABLED:
description: "添加 SUSFS"
required: true
Expand Down Expand Up @@ -91,6 +96,19 @@ jobs:
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 10200)
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" kernel/Makefile
- name: Set up mKernelSU-SKN
if: github.event.inputs.MKSU-SKN_ENABLED == 'true'
run: |
cd kernel_workspace/kernel_platform
curl -LSs "https://raw.githubusercontent.com/ShirkNeko/KernelSU/refs/heads/main/kernel/setup.sh" | bash -
cd KernelSU
git revert -m 1 $(git log --grep="remove devpts hook" --pretty=format:"%h") -n
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 10200)
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" kernel/Makefile
- name: Set up susfs
if: github.event.inputs.SUSFS_ENABLED == 'true'
Expand Down

0 comments on commit ea3f2bd

Please sign in to comment.