mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-05 15:01:00 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a270a1108 | ||
|
|
7a6fdb6323 | ||
|
|
44bc4346c6 | ||
|
|
98d6af79f7 | ||
|
|
11eec19e7d | ||
|
|
9e1d7a5239 | ||
|
|
569e0b5749 | ||
|
|
5d9cc6d745 | ||
|
|
0f62f5de4e | ||
|
|
7f2120dca8 | ||
|
|
9be7cdc6ec | ||
|
|
b7eccac7c5 | ||
|
|
e0afc29cca | ||
|
|
98dfe256e6 | ||
|
|
f179b74d3e |
4
.github/workflows/mikrotik_patch_6.yml
vendored
4
.github/workflows/mikrotik_patch_6.yml
vendored
@@ -98,10 +98,10 @@ jobs:
|
|||||||
RELEASE: ${{ needs.Set_Variables.outputs.RELEASE }}
|
RELEASE: ${{ needs.Set_Variables.outputs.RELEASE }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
|
|||||||
63
.github/workflows/mikrotik_patch_7.yml
vendored
63
.github/workflows/mikrotik_patch_7.yml
vendored
@@ -109,10 +109,10 @@ jobs:
|
|||||||
RELEASE: ${{ needs.Set_Variables.outputs.RELEASE }}
|
RELEASE: ${{ needs.Set_Variables.outputs.RELEASE }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ jobs:
|
|||||||
- name: Cache mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
|
- name: Cache mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
||||||
id: cache-mikrotik
|
id: cache-mikrotik
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
mikrotik.iso
|
mikrotik.iso
|
||||||
@@ -219,6 +219,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo wget -nv -O mikrotik.iso https://download.mikrotik.com/routeros/$LATEST_VERSION/mikrotik-$LATEST_VERSION$ARCH.iso
|
sudo wget -nv -O mikrotik.iso https://download.mikrotik.com/routeros/$LATEST_VERSION/mikrotik-$LATEST_VERSION$ARCH.iso
|
||||||
|
|
||||||
|
- name: Cache refind
|
||||||
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86'
|
||||||
|
id: cache-refind
|
||||||
|
uses: actions/cache@v5
|
||||||
|
with:
|
||||||
|
path: refind-bin-0.14.2.zip
|
||||||
|
key: refind
|
||||||
|
restore-keys: refind
|
||||||
|
|
||||||
|
- name: Get refind
|
||||||
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && steps.cache-refind.outputs.cache-hit != 'true'
|
||||||
|
run: sudo wget -O refind-bin-0.14.2.zip https://downloads.sourceforge.net/project/refind/0.14.2/refind-bin-0.14.2.zip
|
||||||
|
|
||||||
- name: Patch mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
|
- name: Patch mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
||||||
@@ -263,12 +275,23 @@ jobs:
|
|||||||
sudo -E python3 npk.py create ./new_iso/gps-$LATEST_VERSION$ARCH.npk ./python3-$LATEST_VERSION$ARCH.npk python3 ./python3.sfs -desc="python 3.11.13"
|
sudo -E python3 npk.py create ./new_iso/gps-$LATEST_VERSION$ARCH.npk ./python3-$LATEST_VERSION$ARCH.npk python3 ./python3.sfs -desc="python 3.11.13"
|
||||||
sudo cp python3-$LATEST_VERSION$ARCH.npk ./new_iso/
|
sudo cp python3-$LATEST_VERSION$ARCH.npk ./new_iso/
|
||||||
sudo mkdir ./efiboot
|
sudo mkdir ./efiboot
|
||||||
sudo mount -o loop ./new_iso/efiboot.img ./efiboot
|
|
||||||
if [ "${{ matrix.arch }}" == "x86" ]; then
|
if [ "${{ matrix.arch }}" == "x86" ]; then
|
||||||
sudo -E python3 patch.py kernel ./efiboot/linux.x86_64
|
truncate --size 32M efiboot.img
|
||||||
sudo cp ./efiboot/linux.x86_64 ./BOOTX64.EFI
|
sudo mkfs.fat -F16 -n ROUTEROS efiboot.img
|
||||||
sudo cp ./BOOTX64.EFI ./new_iso/isolinux/linux
|
sudo mount -o loop efiboot.img efiboot
|
||||||
|
sudo mkdir -p efiboot/EFI/BOOT
|
||||||
|
sudo unzip refind-bin-0.14.2.zip refind-bin-0.14.2/refind/refind_x64.efi
|
||||||
|
sudo cp refind-bin-0.14.2/refind/refind_x64.efi ./efiboot/EFI/BOOT/BOOTX64.EFI
|
||||||
|
sudo rm -rf refind-bin-0.14.2
|
||||||
|
echo -e 'timeout 0\ntextonly\ntextmode 0\nshowtools shutdown, reboot, exit\nmenuentry "Install RouterOS" {\n\tloader /linux.x86_64\n\toptions "load_ramdisk=1 root=/dev/ram0 -install -cdrom debug"\n}\ndefault_selection /EFI/BOOT/BOOTX64.EFI' \
|
||||||
|
> refind.conf
|
||||||
|
sudo cp refind.conf ./efiboot/EFI/BOOT/
|
||||||
|
sudo rm refind.conf
|
||||||
|
sudo -E python3 patch.py kernel ./new_iso/isolinux/linux
|
||||||
|
sudo cp ./new_iso/isolinux/linux ./efiboot/linux.x86_64
|
||||||
|
sudo cp ./new_iso/isolinux/linux ./linux.x86_64
|
||||||
sudo umount ./efiboot
|
sudo umount ./efiboot
|
||||||
|
sudo cp -f efiboot.img ./new_iso/efiboot.img
|
||||||
sudo mkisofs -o mikrotik-$LATEST_VERSION$ARCH.iso \
|
sudo mkisofs -o mikrotik-$LATEST_VERSION$ARCH.iso \
|
||||||
-V "MikroTik $LATEST_VERSION ${{ matrix.arch }}" \
|
-V "MikroTik $LATEST_VERSION ${{ matrix.arch }}" \
|
||||||
-sysid "" -preparer "MiKroTiK" \
|
-sysid "" -preparer "MiKroTiK" \
|
||||||
@@ -285,6 +308,7 @@ jobs:
|
|||||||
-R -J \
|
-R -J \
|
||||||
./new_iso
|
./new_iso
|
||||||
elif [ "${{ matrix.arch }}" == "arm64" ]; then
|
elif [ "${{ matrix.arch }}" == "arm64" ]; then
|
||||||
|
sudo mount -o loop ./new_iso/efiboot.img ./efiboot
|
||||||
sudo -E python3 patch.py kernel ./efiboot/EFI/BOOT/BOOTAA64.EFI
|
sudo -E python3 patch.py kernel ./efiboot/EFI/BOOT/BOOTAA64.EFI
|
||||||
sudo umount ./efiboot
|
sudo umount ./efiboot
|
||||||
sudo xorriso -as mkisofs -o mikrotik-$LATEST_VERSION$ARCH.iso \
|
sudo xorriso -as mkisofs -o mikrotik-$LATEST_VERSION$ARCH.iso \
|
||||||
@@ -308,7 +332,7 @@ jobs:
|
|||||||
- name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip
|
- name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
|
||||||
id: cache-chr-img
|
id: cache-chr-img
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
chr.img
|
chr.img
|
||||||
@@ -564,7 +588,7 @@ jobs:
|
|||||||
- name: Cache all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
|
- name: Cache all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
|
||||||
id: cache-all-packages
|
id: cache-all-packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: all_packages.zip
|
path: all_packages.zip
|
||||||
key: all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
|
key: all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
|
||||||
@@ -578,7 +602,7 @@ jobs:
|
|||||||
- name: Cache Main package routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
|
- name: Cache Main package routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
|
||||||
id: cache-main-package
|
id: cache-main-package
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: routeros.npk
|
path: routeros.npk
|
||||||
key: routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
|
key: routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
|
||||||
@@ -606,19 +630,6 @@ jobs:
|
|||||||
sudo zip ../all_packages-${{ matrix.arch }}-$LATEST_VERSION.zip *.npk
|
sudo zip ../all_packages-${{ matrix.arch }}-$LATEST_VERSION.zip *.npk
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache refind
|
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
|
|
||||||
id: cache-refind
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: refind-bin-0.14.2.zip
|
|
||||||
key: refind
|
|
||||||
restore-keys: refind
|
|
||||||
|
|
||||||
- name: Get refind
|
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && steps.cache-refind.outputs.cache-hit != 'true' && env.RELEASE == 'true'
|
|
||||||
run: sudo wget -nv -O refind-bin-0.14.2.zip https://nchc.dl.sourceforge.net/project/refind/0.14.2/refind-bin-0.14.2.zip
|
|
||||||
|
|
||||||
- name: Create install-image-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img
|
- name: Create install-image-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
|
||||||
run: |
|
run: |
|
||||||
@@ -642,7 +653,7 @@ jobs:
|
|||||||
> syslinux.cfg
|
> syslinux.cfg
|
||||||
sudo cp syslinux.cfg ./install/
|
sudo cp syslinux.cfg ./install/
|
||||||
sudo rm syslinux.cfg
|
sudo rm syslinux.cfg
|
||||||
sudo cp ./BOOTX64.EFI ./install/linux
|
sudo cp ./linux.x86_64 ./install/linux
|
||||||
NPK_FILES=($(find ./all_packages/*.npk))
|
NPK_FILES=($(find ./all_packages/*.npk))
|
||||||
for ((i=1; i<=${#NPK_FILES[@]}; i++))
|
for ((i=1; i<=${#NPK_FILES[@]}; i++))
|
||||||
do
|
do
|
||||||
@@ -661,7 +672,7 @@ jobs:
|
|||||||
- name: Cache NetInstall ${{ env.LATEST_VERSION }}${{ env.ARCH }}
|
- name: Cache NetInstall ${{ env.LATEST_VERSION }}${{ env.ARCH }}
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
|
||||||
id: cache-netinstall
|
id: cache-netinstall
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
netinstall.zip
|
netinstall.zip
|
||||||
@@ -764,7 +775,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Release tag ${{ env.LATEST_VERSION }} ${{ env.ARCH }}
|
- name: Create Release tag ${{ env.LATEST_VERSION }} ${{ env.ARCH }}
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true'
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
name: "RouterOS ${{ env.LATEST_VERSION }} ${{ env.ARCH }}"
|
name: "RouterOS ${{ env.LATEST_VERSION }} ${{ env.ARCH }}"
|
||||||
body_path: "CHANGELOG"
|
body_path: "CHANGELOG"
|
||||||
|
|||||||
@@ -274,6 +274,14 @@
|
|||||||
<span class="iconify text-xl transition-transform duration-300 group-hover:rotate-12" data-icon="ph:github-logo-bold"></span>
|
<span class="iconify text-xl transition-transform duration-300 group-hover:rotate-12" data-icon="ph:github-logo-bold"></span>
|
||||||
<span class="font-semibold text-sm">GitHub</span>
|
<span class="font-semibold text-sm">GitHub</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<!-- Telegram Keyget Bot link -->
|
||||||
|
<a href="https://t.me/ROS_Keygen_Bot" target="_blank"
|
||||||
|
class="group flex items-center gap-3 px-6 py-3 rounded-xl bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white shadow-md hover:shadow-lg transition-all duration-300 hover:scale-105">
|
||||||
|
<span class="iconify text-xl transition-transform duration-300 group-hover:rotate-12" data-icon="ph:telegram-logo-bold"></span>
|
||||||
|
<span class="font-semibold text-sm">Keygen Bot</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user