Skip to content

Commit 6d8ce4b

Browse files
alexveeclealexpdp7
authored andcommitted
Package editorconfig-checker
1 parent 77c64fd commit 6d8ce4b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
gh = github_repo("editorconfig-checker/editorconfig-checker")
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+
prefix = "ec-{os_str}-{arch_str}".format(os_str=os_str, arch_str=arch_str)
17+
asset = release.get_asset_url("{prefix}.tar.gz".format(prefix=prefix))
18+
19+
install_binary(extract_from_url(asset, "bin/{prefix}".format(prefix=prefix)), "ec")

0 commit comments

Comments
 (0)