瀏覽代碼

Add step to apply static patch for KernelSU-Next

Add a step to fix KernelSU-Next by applying a patch.
jimsterino98 3 月之前
父節點
當前提交
17a340e9e0
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      .github/actions/ksun/action.yml

+ 8 - 0
.github/actions/ksun/action.yml

@@ -73,3 +73,11 @@ runs:
         echo "KSU_GIT_TAG=$KSU_GIT_TAG" >> $GITHUB_ENV
         echo "KSU_VERSION=$KSU_VERSION" >> $GITHUB_ENV
         echo "KSU_COMMIT=$KSU_COMMIT" >> $GITHUB_ENV
+
+    - name: 'Fix KernelSU-Next'
+      shell: bash
+      run: |
+        set -euo pipefail
+        cd "$COMMON/KernelSU-Next"
+        cp ${{ github.action_path }}/patches/static.patch ./
+        patch -p1 < static.patch