Przeglądaj źródła

Fix image path references in build action and update release notes with recommended tools

TheWildJames 3 miesięcy temu
rodzic
commit
ede706b758
1 zmienionych plików z 3 dodań i 20 usunięć
  1. 3 20
      .github/actions/build-kernel/action.yml

+ 3 - 20
.github/actions/build-kernel/action.yml

@@ -88,11 +88,11 @@ runs:
     working-directory: ${{ github.workspace }}
     run: |
       set -euo pipefail
-      if [ -f "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" ]; then
+      if [ -f "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" ]; then
         if [[ ${{ inputs.bypass }} == "true" ]]; then
-          cp "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" "${{ github.workspace }}/AnyKernel3/Bypass-Image"
+          cp "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" "${{ github.workspace }}/AnyKernel3/Bypass-Image"
         else
-          cp "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" "${{ github.workspace }}/AnyKernel3/Image"
+          cp "${{ github.workspace }}/kernel/out/${{ inputs.version }}/dist/Image" "${{ github.workspace }}/AnyKernel3/Image"
         fi
           exit 0
         fi
@@ -107,20 +107,3 @@ runs:
 
       exit 1
 
-  - name: 'Edit AnyKernel3 for Bypass Toggle'
-    shell: bash
-    if : ${{ inputs.bypass == 'true' }}
-    run: |
-      # Inject bypass toggle code into anykernel.sh
-      sed -i '/^# boot install$/i\
-      # Handle bypass image toggle\
-      if [ -f "ENABLE_BYPASS" ]; then\
-          if [ -f "Bypass-Image" ]; then\
-              mv Bypass-Image Image\
-              ui_print " " "  -> Using Bypass kernel image"\
-          else\
-              ui_print " " "  -> Bypass enabled but no Bypass-Image found, using regular Image if available"\
-          fi\
-      fi\
-      ' "${{ github.workspace }}/AnyKernel3/anykernel.sh"
-