diff --git a/.github/workflows/compile_development.yml b/.github/workflows/compile_development.yml index bd610a55..3d52ec0f 100644 --- a/.github/workflows/compile_development.yml +++ b/.github/workflows/compile_development.yml @@ -73,7 +73,7 @@ jobs: - name: Compress .elf uses: edgarrc/action-7z@v1 with: - args: 7z a -t7z -mx=9 src/.pio/build/${{ matrix.variant }}/firmware.elf.7z src/.pio/build/${{ matrix.variant }}/firmware.elf + args: 7z a -t7z -mx=9 src/.pio/build/${{ matrix.variant }}/firmware.elf.7z ./src/.pio/build/${{ matrix.variant }}/firmware.elf - name: Rename Firmware run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT @@ -140,7 +140,7 @@ jobs: - name: Compress .elf uses: edgarrc/action-7z@v1 with: - args: 7z a -t7z -mx=9 src/.pio/build/${{ matrix.variant }}/firmware.elf.7z src/.pio/build/${{ matrix.variant }}/firmware.elf + args: 7z a -t7z -mx=9 src/.pio/build/${{ matrix.variant }}/firmware.elf.7z ./src/.pio/build/${{ matrix.variant }}/firmware.elf - name: Rename Firmware run: python scripts/getVersion.py ${{ matrix.variant }} >> $GITHUB_OUTPUT diff --git a/scripts/getVersion.py b/scripts/getVersion.py index eaea47ba..9470f247 100644 --- a/scripts/getVersion.py +++ b/scripts/getVersion.py @@ -80,7 +80,7 @@ def renameFw(path_define, env): if env[:5] == "esp32": os.rename("src/.pio/build/" + env + "/bootloader.bin", dst + "bootloader.bin") os.rename("src/.pio/build/" + env + "/partitions.bin", dst + "partitions.bin") - os.rename("src/.pio/build/" + env + "/firmware.elf.7z", dst + "firmware.elf.7z") + os.rename("src/.pio/build/" + env + "/firmware.elf.7z", dst + fnanme[:-3] + "elf.7z") genOtaBin(dst) if env[:7] == "esp8285":