diff --git a/repo/htmlq.ubpkg.sky b/repo/htmlq.ubpkg.sky new file mode 100644 index 0000000..0b18fab --- /dev/null +++ b/repo/htmlq.ubpkg.sky @@ -0,0 +1,19 @@ +gh = github_repo("mgdm/htmlq") + +release = gh.latest_release() + +os_str = { + "linux": "linux", + "macos": "darwin", + "windows": "windows", +}[os] + +archive_format = { + "linux": "tar.gz", + "macos": "tar.gz", + "windows": "zip", +}[os] + +asset = release.get_asset_url("htmlq-x86_64-{os_str}.{archive_format}".format(os_str=os_str, archive_format=archive_format)) + +install_binary(extract_from_url(asset, "htmlq"), "htmlq")