modified: .github/workflows/mikrotik_patch.yml

modified:   patch.py
This commit is contained in:
zyb 2024-06-24 09:50:31 +08:00
parent 505887e8f3
commit 049c4b91e5
2 changed files with 7 additions and 2 deletions

View File

@ -152,6 +152,9 @@ jobs:
-no-emul-boot \ -no-emul-boot \
-R -J \ -R -J \
./new_iso ./new_iso
cd ./new_iso
sudo zip ../all_packages-x86-$LATEST_VERSION.zip *.npk
cd ..
sudo rm -rf ./new_iso sudo rm -rf ./new_iso
- name: Create chr-${{ env.LATEST_VERSION }}.img - name: Create chr-${{ env.LATEST_VERSION }}.img
@ -275,4 +278,7 @@ jobs:
mikrotik-${{ env.LATEST_VERSION }}.iso mikrotik-${{ env.LATEST_VERSION }}.iso
chr-${{ env.LATEST_VERSION }}*.zip chr-${{ env.LATEST_VERSION }}*.zip
netinstall-${{ env.LATEST_VERSION }}.zip netinstall-${{ env.LATEST_VERSION }}.zip
install-image-${{ env.LATEST_VERSION }}.zip install-image-${{ env.LATEST_VERSION }}.zip
routeros-$LATEST_VERSION.npk
option-$LATEST_VERSION.npk
all_packages-x86-$LATEST_VERSION.zip

View File

@ -45,7 +45,6 @@ def run_shell_command(command):
process = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) process = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return process.stdout, process.stderr return process.stdout, process.stderr
def patch_squashfs(path,key_dict): def patch_squashfs(path,key_dict):
for root, dirs, files in os.walk(path): for root, dirs, files in os.walk(path):
for file in files: for file in files: