Skip to content

Commit

Permalink
Package probe-rs-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
alexveecle authored and alexpdp7 committed Oct 17, 2024
1 parent 961a6c5 commit a561fc5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ allocative = "0.3.3"
anyhow = "1.0.89"
clap = { version = "4.5.20", features = ["derive"] }
color-eyre = "0.6.3"
decompress = { version = "0.6.0", default-features = false, features = ["targz", "zip", "gz"] }
decompress = { version = "0.6.0", default-features = false, features = ["targz", "zip", "gz", "tarxz"] }
directories = "5.0.1"
include_dir = "0.7.4"
regex = "1.10.6"
Expand Down
23 changes: 23 additions & 0 deletions repo/probe-rs-tools.ubpkg.sky
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
gh = github_repo("probe-rs/probe-rs")

release = gh.latest_release()

os_str = {
"linux": "unknown-linux-gnu",
"macos": "apple-darwin",
"windows": "pc-windows-msvc",
}[os]

archive_format = {
"linux": "tar.xz",
"macos": "tar.xz",
"windows": "zip",
}[os]

name = "probe-rs-tools-{arch}-{os_str}".format(arch=arch, os_str=os_str)

asset = release.get_asset_url("{name}.{archive_format}".format(name=name, archive_format=archive_format))

install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "cargo-embed")
install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "cargo-flash")
install_binary(extract_from_url(asset, "{name}/cargo-embed".format(name=name)), "probe-rs")

0 comments on commit a561fc5

Please sign in to comment.