2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

moonrepoのproto toolsのtomlを30秒で作る方法

Last updated at Posted at 2024-06-13

前提

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に内容を貼り付ける

CleanShot 2024-06-13 at 10.54.07@2x.png

以下のような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"
2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?