Skip to content

Commit 5d9abac

Browse files
alexveeclealexpdp7
authored andcommitted
Package fx
1 parent 2333229 commit 5d9abac

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

repo/fx.ubpkg.sky

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
gh = github_repo("antonmedv/fx")
2+
3+
release = gh.latest_release()
4+
5+
os_str = {
6+
"linux": "linux",
7+
"macos": "darwin",
8+
"windows": "windows",
9+
}[os]
10+
11+
arch_str = {
12+
"x86_64": "amd64",
13+
"aarch64": "arm64",
14+
}[arch]
15+
16+
suffix = {
17+
"linux": "",
18+
"macos": "",
19+
"windows": ".exe",
20+
}[os]
21+
22+
asset = release.get_asset_url("fx_{os_str}_{arch_str}{suffix}".format(os_str=os_str, arch_str=arch_str, suffix=suffix))
23+
24+
install_binary(download_asset(asset, 32*1024*1024), "fx")

0 commit comments

Comments
 (0)