modified: .github/workflows/mikrotik_patch_7.yml

modified:   patch.py
This commit is contained in:
elseif 2026-05-19 23:52:12 +08:00
parent 7fd1b6c563
commit 30d6ac5fe6
2 changed files with 2 additions and 2 deletions

View File

@ -792,7 +792,7 @@ jobs:
- name: Upload Files as Artifact (No Release)
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'false'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}
path: |

View File

@ -412,7 +412,7 @@ def patch_npk_package(package,key_dict):
open(squashfs_file,'wb').write(package[NpkPartID.SQUASHFS].data)
print(f"extract {squashfs_file} ...")
run_shell_command(f"unsquashfs -d {extract_dir} {squashfs_file}")
patch_squashfs(os.path.join(extract_dir,'nova','bin'),key_dict)
patch_squashfs(extract_dir,key_dict)
logo = os.path.join(extract_dir,"nova/lib/console/logo.txt")
run_shell_command(f"sudo sed -i '1d' {logo}")
run_shell_command(f"sudo sed -i '8s#.*# elseif@live.cn https://github.com/elseif/MikroTikPatch#' {logo}")