From 239613597097986f4fc92f9355201f124d63045c Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Tue, 22 Aug 2023 22:04:05 -0400 Subject: [PATCH] +rome.tools (#3030) * +rome.tools * fix version --------- Co-authored-by: Jacob Heider --- projects/rome.tools/package.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 projects/rome.tools/package.yml diff --git a/projects/rome.tools/package.yml b/projects/rome.tools/package.yml new file mode 100644 index 00000000..1571f780 --- /dev/null +++ b/projects/rome.tools/package.yml @@ -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}}"