Skip to content

Commit c48844a

Browse files
committed
Package sops
1 parent dfbdf53 commit c48844a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

repo/sops.ubpkg.sky

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
gh = github_repo("getsops/sops")
2+
3+
release = gh.latest_release()
4+
version_str = release.name()
5+
6+
os_str = {
7+
"linux": "linux",
8+
"macos": "darwin",
9+
}[os]
10+
11+
arch_str = {
12+
"x86_64": "amd64",
13+
"aarch64": "arm64",
14+
}[arch]
15+
16+
asset = release.get_asset_url("sops-{version_str}.{os_str}.{arch_str}".format(version_str=version_str, os_str=os_str, arch_str=arch_str))
17+
install_binary(download_asset(asset, 64*1024*1024), "sops")

0 commit comments

Comments
 (0)