Skip to content

Commit

Permalink
Package jj
Browse files Browse the repository at this point in the history
  • Loading branch information
alexveecle authored and alexpdp7 committed Nov 20, 2024
1 parent 5842e91 commit 07c49a6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions repo/jj.ubpkg.sky
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
gh = github_repo("martinvonz/jj")

release = gh.latest_release()

rest = {
("macos", "aarch64"): "aarch64-apple-darwin",
("macos", "x86_64"): "x86_64-apple-darwin",
("linux", "x86_64"): "x86_64-unknown-linux-musl",
("linux", "aarch64"): "aarch64-unknown-linux-musl",
("windows", "x86_64"): "x86_64-pc-windows-msvc",
}[(os, arch)]

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


asset = release.get_asset_url("jj-{version}-{rest}.{archive_format}".format(version=release.name(), rest=rest, archive_format=archive_format))

install_binary(extract_from_url(asset, "jj"), "jj")

0 comments on commit 07c49a6

Please sign in to comment.