Browse Source

modified: .github/workflows/mikrotik_patch_7.yml

modified:   patch.py
pull/123/head
zyb 9 months ago
parent
commit
af97ad2a07
  1. 2
      .github/workflows/mikrotik_patch_7.yml
  2. 3
      patch.py

2
.github/workflows/mikrotik_patch_7.yml

@ -160,8 +160,6 @@ jobs:
sudo apt-get install -y p7zip-full > /dev/null
7z x -p"${{ secrets.LOADER_7Z_PASSWORD }}" loader.7z >> /dev/null
rm loader.7z
echo $(pwd)
- name: Cache Squashfs
if: steps.get_latest.outputs.has_new_version == 'true'

3
patch.py

@ -283,7 +283,8 @@ def patch_kernel(data:bytes,key_dict):
def patch_loader(loader_file):
try:
print("loader patch exists:", os.path.exists('loader/patch_loader.py'))
from package import check_install_package
check_install_package(['elftools'])
from loader.patch_loader import patch_loader as do_patch_loader
arch = os.getenv('ARCH','x86')
if arch != 'x86':

Loading…
Cancel
Save