前提
gRPCのprotoではなく、moonrepoのproto toolsの事を指しています
githubにアーティファクトがある前提です.
1. assets一覧を出す
gh release view v4.44.1 --repo mikefarah/yq --json assets | pbcopy
2. ChatGPTでmonnrepo-proto-tools-toml-creatorに内容を貼り付ける
以下のようなtomlが生成されます。以上で完了です.
name = "neovim"
type = "cli"
[platform.linux]
download-file = "nvim-linux64.tar.gz"
checksum-file = "nvim-linux64.tar.gz.sha256sum"
[platform.macos]
download-file = "nvim-macos-{arch}.tar.gz"
checksum-file = "nvim-macos-{arch}.tar.gz.sha256sum"
[platform.windows]
download-file = "nvim-win64.{ext}"
checksum-file = "nvim-win64.{ext}.sha256sum"
[install]
download-url = "https://github.com/neovim/neovim/releases/download/v{version}/{download_file}"
[install.arch]
aarch64 = "arm64"
x86_64 = "x86_64"
[install.ext]
msi = "msi"
zip = "zip"
[resolve]
git-url = "https://github.com/neovim/neovim"