refactor: streamline Gitea release workflow and update version to 1.2.77
This commit is contained in:
parent
8a93cccfce
commit
e1e0352beb
50
.github/workflows/providers/gitea-release.yml
vendored
50
.github/workflows/providers/gitea-release.yml
vendored
@ -41,39 +41,37 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd .pio/build/esp32dev
|
cd .pio/build/esp32dev
|
||||||
|
|
||||||
# Debug: Show all generated files
|
# Create OTA binary (firmware only)
|
||||||
echo "Files in build directory:"
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
# Create OTA binary (already has correct magic byte)
|
|
||||||
cp firmware.bin filaman_ota.bin
|
cp firmware.bin filaman_ota.bin
|
||||||
|
|
||||||
# Create a magic byte prepended binary for the bootloader
|
# Create basic flash layout
|
||||||
echo -ne '\xE9' > bootloader_with_magic.bin
|
echo "Creating initial 4MB flash image..."
|
||||||
cat bootloader.bin >> bootloader_with_magic.bin
|
dd if=/dev/zero bs=1M count=4 of=flash_4mb.bin
|
||||||
|
|
||||||
echo "Creating full binary with magic byte..."
|
# Create partition layout
|
||||||
esptool.py --chip esp32 merge_bin \
|
echo "Writing bootloader..."
|
||||||
--fill-flash-size 4MB \
|
dd if=bootloader.bin of=flash_4mb.bin bs=1 seek=$((0x1000)) conv=notrunc
|
||||||
--flash_mode dio \
|
|
||||||
--flash_freq 40m \
|
|
||||||
--flash_size 4MB \
|
|
||||||
-o filaman_full.bin \
|
|
||||||
0x0000 bootloader_with_magic.bin \
|
|
||||||
0x8000 partitions.bin \
|
|
||||||
0x10000 firmware.bin \
|
|
||||||
0x3D0000 spiffs.bin
|
|
||||||
|
|
||||||
# Verify magic bytes
|
echo "Writing partitions..."
|
||||||
echo "Checking magic bytes:"
|
dd if=partitions.bin of=flash_4mb.bin bs=1 seek=$((0x8000)) conv=notrunc
|
||||||
echo "OTA binary first bytes:"
|
|
||||||
hexdump -C -n 16 filaman_ota.bin
|
|
||||||
echo "Full binary first bytes:"
|
|
||||||
hexdump -C -n 16 filaman_full.bin
|
|
||||||
|
|
||||||
# Verify file sizes
|
echo "Writing firmware..."
|
||||||
|
dd if=firmware.bin of=flash_4mb.bin bs=1 seek=$((0x10000)) conv=notrunc
|
||||||
|
|
||||||
|
echo "Writing SPIFFS..."
|
||||||
|
dd if=spiffs.bin of=flash_4mb.bin bs=1 seek=$((0x3D0000)) conv=notrunc
|
||||||
|
|
||||||
|
# Rename to final name
|
||||||
|
cp flash_4mb.bin filaman_full.bin
|
||||||
|
|
||||||
|
# Verify file sizes and content
|
||||||
echo "File sizes:"
|
echo "File sizes:"
|
||||||
ls -lh *.bin
|
ls -lh *.bin
|
||||||
|
|
||||||
|
echo "Binary information:"
|
||||||
|
esptool.py --chip esp32 image_info filaman_ota.bin || true
|
||||||
|
echo "Full binary info:"
|
||||||
|
xxd -l 64 filaman_full.bin
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.76"
|
version = "1.2.77"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user