Skip to content

Commit a561fc5

Browse files
alexveeclealexpdp7
authored andcommitted
Package probe-rs-tools
1 parent 961a6c5 commit a561fc5

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

Cargo.lock

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ allocative = "0.3.3"
1010
anyhow = "1.0.89"
1111
clap = { version = "4.5.20", features = ["derive"] }
1212
color-eyre = "0.6.3"
13-
decompress = { version = "0.6.0", default-features = false, features = ["targz", "zip", "gz"] }
13+
decompress = { version = "0.6.0", default-features = false, features = ["targz", "zip", "gz", "tarxz"] }
1414
directories = "5.0.1"
1515
include_dir = "0.7.4"
1616
regex = "1.10.6"

repo/probe-rs-tools.ubpkg.sky

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
gh = github_repo("probe-rs/probe-rs")
2+
3+
release = gh.latest_release()
4+
5+
os_str = {
6+
"linux": "unknown-linux-gnu",
7+
"macos": "apple-darwin",
8+
"windows": "pc-windows-msvc",
9+
}[os]
10+
11+
archive_format = {
12+
"linux": "tar.xz",
13+
"macos": "tar.xz",
14+
"windows": "zip",
15+
}[os]
16+
17+
name = "probe-rs-tools-{arch}-{os_str}".format(arch=arch, os_str=os_str)
18+
19+
asset = release.get_asset_url("{name}.{archive_format}".format(name=name, archive_format=archive_format))
20+
21+
install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "cargo-embed")
22+
install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "cargo-flash")
23+
install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "probe-rs")

0 commit comments

Comments
 (0)