Skip to content

Commit c0069cb

Browse files
committed
Update cargo-binstall configuration to reflect new distribution format
1 parent 87281c3 commit c0069cb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cargo-espflash/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ categories = [
2525
]
2626

2727
[package.metadata.binstall]
28-
pkg-url = "{ repo }/releases/download/v{ version }/{ name }"
29-
pkg-fmt = "bin"
28+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.{ archive-format }"
29+
bin-dir = "{ bin }{ binary-ext }"
30+
pkg-fmt = "zip"
3031

3132
[dependencies]
3233
cargo_metadata = "0.14"

espflash/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ categories = [
2424
exclude = ["tests/data"]
2525

2626
[package.metadata.binstall]
27-
pkg-url = "{ repo }/releases/download/v{ version }/{ name }"
28-
pkg-fmt = "bin"
27+
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.{ archive-format }"
28+
bin-dir = "{ bin }{ binary-ext }"
29+
pkg-fmt = "zip"
2930

3031
[[bin]]
3132
name = "espflash"

0 commit comments

Comments
 (0)