Skip to content

Commit

Permalink
Change binary filenames to eliminate a breaking change in updates
Browse files Browse the repository at this point in the history
  • Loading branch information
krokosik committed Feb 11, 2025
1 parent 04cce6e commit 6dd3ad4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target = "xtensa-esp32s3-espidf"

[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
runner = "espflash flash --partition-table=partitions.csv --monitor" # Select this runner for espflash v3.x.x
runner = "espflash flash --partition-table=partitions.csv --monitor --erase-parts otadata" # Select this runner for espflash v3.x.x
rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110

[unstable]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:
run: cargo build --release

- name: Copy compiled ELF file
run: cp target/xtensa-esp32s3-espidf/release/esp-pulser .
run: cp target/xtensa-esp32s3-espidf/release/esp-pulser esp-pulser-flash

- name: Trim OTA binary
run: espflash save-image --chip esp32s3 esp-pulser esp-pulser-ota
run: espflash save-image --chip esp32s3 esp-pulser-flash esp-pulser

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
esp-pulser-ota
esp-pulser
esp-pulser-flash
partitions.csv
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "esp-pulser"
version = "0.5.0"
version = "0.4.8"
authors = ["krokosik <[email protected]>"]
edition = "2021"
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion src/ota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use esp_idf_svc::sys::{ESP_ERR_IMAGE_INVALID, ESP_ERR_INVALID_RESPONSE};
use http::{header::ACCEPT, Uri};

pub const UPDATE_BIN_URL: &str =
"https://github.com/krokosik/esp-pulser/releases/download/vTAG/esp-pulser-ota";
"https://github.com/krokosik/esp-pulser/releases/download/vTAG/esp-pulser";

const FIRMWARE_DOWNLOAD_CHUNK_SIZE: usize = 1024 * 20;
// Not expect firmware bigger than partition size
Expand Down

0 comments on commit 6dd3ad4

Please sign in to comment.