Skip to content

Commit 8869a67

Browse files
alexveeclealexpdp7
authored andcommitted
Package iamlive
1 parent ff49166 commit 8869a67

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

repo/iamlive.ubpkg.sky

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
gh = github_repo("iann0036/iamlive")
2+
3+
release = gh.latest_release()
4+
version_str = release.name()
5+
6+
os_str = {
7+
"linux": "linux",
8+
"macos": "darwin",
9+
"windows": "windows",
10+
}[os]
11+
12+
arch_str = {
13+
"x86_64": "amd64",
14+
"aarch64": "arm64",
15+
}[arch]
16+
17+
archive_format = {
18+
"linux": "tar.gz",
19+
"macos": "zip",
20+
"windows": "zip",
21+
}[os]
22+
23+
asset = release.get_asset_url("iamlive-{version_str}-{os_str}-{arch_str}.{archive_format}".format(version_str=version_str, os_str=os_str, arch_str=arch_str, archive_format=archive_format))
24+
25+
install_binary(extract_from_url(asset, "iamlive"), "iamlive")

0 commit comments

Comments
 (0)