2023-05-04 02:55:50 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/render-oss/render-cli/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: render-oss/render-cli/tags
|
|
|
|
strip: /^v/
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
deno.land: ^1.30
|
2023-10-23 17:25:35 +03:00
|
|
|
# patchelf messes with Deno's ability to find the DATA block, making it
|
|
|
|
# operate as only a bloated Deno binary
|
|
|
|
skip: fix-patchelf
|
2023-05-04 02:55:50 +03:00
|
|
|
script: |
|
|
|
|
# Something is wrong with their deps-lock.json.
|
|
|
|
# Two of the ajv packages fail to install correctly,
|
|
|
|
# and others have hash mismatches.
|
|
|
|
rm deps-lock.json
|
|
|
|
sed -i.bak \
|
|
|
|
-e "s/ajv-formats@2.1.1/ajv-formats@2.1.0/" \
|
|
|
|
-e "s/ajv@8.11.0/ajv@8.11.1/" \
|
|
|
|
deps.ts
|
|
|
|
rm deps.ts.bak
|
|
|
|
deno compile \
|
|
|
|
--unstable \
|
|
|
|
--allow-net \
|
|
|
|
--allow-read \
|
|
|
|
--allow-run \
|
|
|
|
--allow-write \
|
|
|
|
--allow-env \
|
|
|
|
--output='{{prefix}}/bin/render' \
|
|
|
|
./entry-point.ts
|
|
|
|
test: deno test --allow-write --allow-read --allow-net --allow-env --allow-run
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/render
|
|
|
|
|
|
|
|
test: render commands
|