We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b42c6 commit 170200fCopy full SHA for 170200f
repo/k9s.ubpkg.sky
@@ -0,0 +1,24 @@
1
+gh = github_repo("derailed/k9s")
2
+
3
+release = gh.latest_release()
4
5
+os_str = {
6
+ "macos": "Darwin",
7
+ "linux": "Linux",
8
+ "windows": "Windows",
9
+}[os]
10
11
+arch_str = {
12
+ "x86_64": "amd64",
13
+ "aarch64": "arm64",
14
+}[arch]
15
16
+archive_format = {
17
+ "linux": "tar.gz",
18
+ "macos": "tar.gz",
19
+ "windows": "zip",
20
21
22
+asset = release.get_asset_url("k9s_{os_str}_{arch_str}.{archive_format}".format(os_str=os_str, arch_str=arch_str, archive_format=archive_format))
23
24
+install_binary(extract_from_url(asset, "k9s"), "k9s")
0 commit comments