Browse Source

0.8.122

* fix elf file rename
pull/1541/head
lumapu 8 months ago
parent
commit
ead1a23a48
  1. 4
      .github/workflows/compile_development.yml
  2. 2
      scripts/getVersion.py

4
.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

2
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":

Loading…
Cancel
Save