Browse Source

dev-susfs

TheWildJames 2 months ago
parent
commit
c66c216bd3

+ 4 - 3
.github/actions/kernelsu/action.yml

@@ -2,7 +2,7 @@ name: Setup Wild KSU
 description: Download and configure Wild KSU with version tracking
 inputs:
   ksu_branch:
-    description: 'KernelSU branch or commit (empty = latest dev branch tip)'
+    description: 'KernelSU branch or commit (empty = latest dev-susfs branch tip)'
     required: false
     default: ""
 
@@ -15,13 +15,14 @@ runs:
       run: |
         set -euo pipefail
 
+        KSU_REPO="https://github.com/pershoot/KernelSU-Next.git"
         KSU_INPUT="${{ inputs.ksu_branch }}"
         if [ -z "$KSU_INPUT" ]; then
-          KSU_INPUT="dev"
+          KSU_INPUT="dev-susfs"
         fi
 
         # Try as branch first, fall back to commit
-        if git ls-remote --heads https://github.com/KernelSU-Next/KernelSU-Next.git "$KSU_INPUT" | grep -q .; then
+        if git ls-remote --heads "$KSU_REPO" "$KSU_INPUT" | grep -q .; then
           echo "Using KernelSU-Next branch: $KSU_INPUT"
           curl -LSs "https://raw.githubusercontent.com/pershoot/KernelSU-Next/dev-susfs/kernel/setup.sh" | bash -s dev-susfs
           git -C KernelSU-Next/kernel fetch --depth=50 origin "$KSU_INPUT"

+ 1 - 1
.github/config/RELEASE_NOTES.md

@@ -12,7 +12,7 @@ Join the telegram here: https://t.me/WildKernelsTG
 - [DroidSpaces-OSS](#droidspaces-oss)
 - [Networking Improvements](#networking)
 
-## [KernelSU-Next](https://github.com/KernelSU-Next/KernelSU-Next)
+## [KernelSU-Next](https://github.com/pershoot/KernelSU-Next)
 
 A kernel-based root solution for Android devices.
 

+ 3 - 3
.github/workflows/commit-status.yml

@@ -39,11 +39,11 @@ jobs:
           }
 
           github_latest_commit() {
-            curl -fsSL "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/commits/dev" | jq -r '.sha'
+            curl -fsSL "https://api.github.com/repos/pershoot/KernelSU-Next/commits/dev-susfs" | jq -r '.sha'
           }
 
           github_latest_message() {
-            curl -fsSL "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/commits/dev" | jq -r '.commit.message | split("\n")[0]'
+            curl -fsSL "https://api.github.com/repos/pershoot/KernelSU-Next/commits/dev-susfs" | jq -r '.commit.message | split("\n")[0]'
           }
 
           {
@@ -89,4 +89,4 @@ jobs:
           latest_kernelsu_message="$(github_latest_message)"
           latest_kernelsu_message="$(sanitize_cell "$latest_kernelsu_message")"
 
-          printf '| %s | %s | %s |\n' "dev" "$latest_kernelsu_commit" "$latest_kernelsu_message" >> "$summary_file"
+          printf '| %s | %s | %s |\n' "dev-susfs" "$latest_kernelsu_commit" "$latest_kernelsu_message" >> "$summary_file"

+ 19 - 17
.github/workflows/main.yml

@@ -45,7 +45,7 @@ on:
           - FULL
         default: FULL
       ksu_branch:
-        description: "KernelSU branch or commit (empty = latest dev branch tip)"
+        description: "KernelSU branch or commit (empty = latest dev-susfs branch tip)"
         type: string
         required: false
         default: ""
@@ -319,20 +319,21 @@ jobs:
       run: |
         set -euo pipefail
 
+        KSU_REPO="https://github.com/pershoot/KernelSU-Next.git"
         KSU_INPUT="${{ inputs.ksu_branch }}"
         if [ -z "$KSU_INPUT" ]; then
-          KSU_INPUT="dev"
+          KSU_INPUT="dev-susfs"
         fi
 
         # Try as branch first, fall back to commit
-        if git ls-remote --heads https://github.com/KernelSU-Next/KernelSU-Next.git "$KSU_INPUT" | grep -q .; then
+        if git ls-remote --heads "$KSU_REPO" "$KSU_INPUT" | grep -q .; then
           echo "Cloning KernelSU-Next from branch: $KSU_INPUT"
-          git clone --branch "$KSU_INPUT" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
+          git clone --branch "$KSU_INPUT" "$KSU_REPO" /tmp/kernelsu-next
           cd /tmp/kernelsu-next
           KSUN_COMMIT=$(git rev-parse HEAD)
         else
-          echo "Cloning KernelSU-Next from dev branch, then checking out commit: $KSU_INPUT"
-          git clone --branch dev https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
+          echo "Cloning KernelSU-Next from dev-susfs branch, then checking out commit: $KSU_INPUT"
+          git clone --branch dev-susfs "$KSU_REPO" /tmp/kernelsu-next
           cd /tmp/kernelsu-next
           git fetch --depth=50 origin "$KSU_INPUT"
           git checkout "$KSU_INPUT"
@@ -345,11 +346,11 @@ jobs:
 
         KSU_GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "no-tag")
 
-        MANAGER_RUN_ID=$(curl -fsSL "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?head_sha=${KSUN_COMMIT}" | jq -r '.workflow_runs[0].id // empty')
+        MANAGER_RUN_ID=$(curl -fsSL "https://api.github.com/repos/pershoot/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?head_sha=${KSUN_COMMIT}" | jq -r '.workflow_runs[0].id // empty')
         if [[ -n "${MANAGER_RUN_ID:-}" ]]; then
-          KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
+          KSU_MANAGER="https://github.com/pershoot/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
         else
-          KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml"
+          KSU_MANAGER="https://github.com/pershoot/KernelSU-Next/actions/workflows/build-manager-ci.yml"
         fi
 
         echo "Commits count: $COMMITS_COUNT"
@@ -501,20 +502,21 @@ jobs:
       run: |
         set -euo pipefail
 
+        KSU_REPO="https://github.com/pershoot/KernelSU-Next.git"
         KSU_INPUT="${{ inputs.ksu_branch }}"
         if [ -z "$KSU_INPUT" ]; then
-          KSU_INPUT="dev"
+          KSU_INPUT="dev-susfs"
         fi
 
         # Try as branch first, fall back to commit
-        if git ls-remote --heads https://github.com/KernelSU-Next/KernelSU-Next.git "$KSU_INPUT" | grep -q .; then
+        if git ls-remote --heads "$KSU_REPO" "$KSU_INPUT" | grep -q .; then
           echo "Cloning KernelSU-Next from branch: $KSU_INPUT"
-          git clone --branch "$KSU_INPUT" https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
+          git clone --branch "$KSU_INPUT" "$KSU_REPO" /tmp/kernelsu-next
           cd /tmp/kernelsu-next
           KSUN_COMMIT=$(git rev-parse HEAD)
         else
-          echo "Cloning KernelSU-Next from dev branch, then checking out commit: $KSU_INPUT"
-          git clone --branch dev https://github.com/KernelSU-Next/KernelSU-Next.git /tmp/kernelsu-next
+          echo "Cloning KernelSU-Next from dev-susfs branch, then checking out commit: $KSU_INPUT"
+          git clone --branch dev-susfs "$KSU_REPO" /tmp/kernelsu-next
           cd /tmp/kernelsu-next
           git fetch --depth=50 origin "$KSU_INPUT"
           git checkout "$KSU_INPUT"
@@ -529,11 +531,11 @@ jobs:
         # Extract git tag
         KSU_GIT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "no-tag")
 
-        MANAGER_RUN_ID=$(curl -fsSL "https://api.github.com/repos/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?head_sha=${KSUN_COMMIT}" | jq -r '.workflow_runs[0].id // empty')
+        MANAGER_RUN_ID=$(curl -fsSL "https://api.github.com/repos/pershoot/KernelSU-Next/actions/workflows/build-manager-ci.yml/runs?head_sha=${KSUN_COMMIT}" | jq -r '.workflow_runs[0].id // empty')
         if [[ -n "${MANAGER_RUN_ID:-}" ]]; then
-          KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
+          KSU_MANAGER="https://github.com/pershoot/KernelSU-Next/actions/runs/${MANAGER_RUN_ID}"
         else
-          KSU_MANAGER="https://github.com/KernelSU-Next/KernelSU-Next/actions/workflows/build-manager-ci.yml"
+          KSU_MANAGER="https://github.com/pershoot/KernelSU-Next/actions/workflows/build-manager-ci.yml"
         fi
 
         echo "Commits count: $COMMITS_COUNT"