pantry/projects/tea.xyz/package.yml

38 lines
800 B
YAML
Raw Normal View History

2022-09-23 16:44:25 +03:00
distributable:
url: https://github.com/teaxyz/cli/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: teaxyz/cli
provides:
- bin/tea
dependencies:
# 1.25.0 - 1.25.2 panics on Linux for us
deno.land: '>=1.23 <1.25 || ^1.25.3'
build:
script: |
sed -i.bak "s/^const version = .*$/const version = \"{{ version }}\"/" src/app.ts
rm src/app.ts.bak
2022-09-23 16:44:25 +03:00
mkdir -p {{ prefix }}/bin
2022-09-23 16:44:25 +03:00
deno compile \
--allow-read \
--allow-write \
--allow-net \
--allow-run \
--allow-env \
--unstable \
2022-09-23 16:44:25 +03:00
--import-map=./import-map.json \
--output {{ prefix }}/bin/tea \
./src/app.ts
test:
#TODO: build teaxyz/white-paper for better test
script: |
tea --version
test "$(tea --version)" = "tea {{ version }}"