mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 10:39:40 +00:00
modified: .github/workflows/mikrotik_patch_7.yml
modified: patch.py
This commit is contained in:
parent
7fd1b6c563
commit
30d6ac5fe6
2
.github/workflows/mikrotik_patch_7.yml
vendored
2
.github/workflows/mikrotik_patch_7.yml
vendored
@ -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: |
|
||||
|
||||
2
patch.py
2
patch.py
@ -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}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user