Skip to content

Commit

Permalink
Merge pull request #9 from appthrust/jnv
Browse files Browse the repository at this point in the history
feat: 🎸 add jnv
  • Loading branch information
kahirokunn authored Jun 13, 2024
2 parents bf4c203 + fb71fdb commit 3bcf276
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions jnv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# jnv plugin

[jnv](https://jnvcli.io) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

This is a community plugin and is thus not built-in to proto. In order to use it, first either add it to your global or project-based `.prototools` by running:

### Global install

```shell
proto plugin add jnv "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/jnv/plugin.toml" --global
proto install jnv
```

### Per-project install

```shell
proto plugin add jnv "source:https://raw.githubusercontent.com/appthrust/proto-toml-plugins/main/jnv/plugin.toml"
proto pin jnv latest --resolve
```
30 changes: 30 additions & 0 deletions jnv/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# A TOML plugin for jnv:
# https://moonrepo.dev/docs/proto/plugins#toml-plugin

name = "jnv"
type = "cli"

[platform.linux]
bin-path = "jnv-{arch}-unknown-linux-gnu/jnv"
download-file = "jnv-{arch}-unknown-linux-gnu.tar.xz"
checksum-file = "jnv-{arch}-unknown-linux-gnu.tar.xz.sha256"

[platform.macos]
bin-path = "jnv-{arch}-apple-darwin/jnv"
download-file = "jnv-{arch}-apple-darwin.tar.xz"
checksum-file = "jnv-{arch}-apple-darwin.tar.xz.sha256"

[platform.windows]
bin-path = "jnv-{arch}-pc-windows-msvc/jnv.exe"
download-file = "jnv-{arch}-pc-windows-msvc.zip"
checksum-file = "jnv-{arch}-pc-windows-msvc.zip.sha256"

[install]
download-url = "https://github.com/ynqa/jnv/releases/download/v{version}/{download_file}"

[install.arch]
aarch64 = "aarch64"
x86_64 = "x86_64"

[resolve]
git-url = "https://github.com/ynqa/jnv"

0 comments on commit 3bcf276

Please sign in to comment.