+rome.tools (#3030)

* +rome.tools

* fix version

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Kevin Chen 2023-08-22 22:04:05 -04:00 committed by GitHub
parent 5605365a50
commit 2396135970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
distributable:
url: https://github.com/rome/tools/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/rome
versions:
github: rome/tools
strip: /v/
build:
working-directory: crates/rome_cli
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
- sed -i.bak 's/version = "0.0.0"/version = "{{version}}"/' Cargo.toml
- rm Cargo.toml.bak
- cargo install --locked --path . --root {{prefix}}
test:
script:
- test "$(rome help | head -n1)" = "Rome v{{version}}"