mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
Use version stamped tea srcs; tidy (#115)
This commit is contained in:
parent
fd4fcf7fb7
commit
1b365dd48c
2 changed files with 15 additions and 27 deletions
|
@ -1,6 +1,9 @@
|
|||
distributable:
|
||||
url: https://github.com/teaxyz/cli/archive/refs/tags/v{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
url: https://github.com/teaxyz/cli/releases/download/v{{ version }}/tea-{{ version }}.tar.xz
|
||||
strip-components: 2
|
||||
#FIXME I have no idea why we must strip TWO components
|
||||
# when I manually extract the tarball it only has one but if we specify 1
|
||||
# both here and manually it has that same component *still*
|
||||
|
||||
versions:
|
||||
github: teaxyz/cli
|
||||
|
@ -8,30 +11,14 @@ versions:
|
|||
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
|
||||
dependencies:
|
||||
deno.land: '>=1.23 <1.25 || ^1.25.3'
|
||||
# ^^ 1.25.0 - 1.25.2 panics on Linux for us
|
||||
working-directory: ${{prefix}}/bin
|
||||
script:
|
||||
deno task --config "$SRCROOT"/deno.jsonc compile
|
||||
|
||||
mkdir -p {{ prefix }}/bin
|
||||
|
||||
deno compile \
|
||||
--allow-read \
|
||||
--allow-write \
|
||||
--allow-net \
|
||||
--allow-run \
|
||||
--allow-env \
|
||||
--unstable \
|
||||
--import-map=./import-map.json \
|
||||
--output {{ prefix }}/bin/tea \
|
||||
./src/app.ts
|
||||
|
||||
test:
|
||||
#TODO: build teaxyz/white-paper for better test
|
||||
script: |
|
||||
test: |
|
||||
tea --version
|
||||
test "$(tea --version)" = "tea {{ version }}"
|
||||
|
|
|
@ -58,6 +58,7 @@ async function __build(pkg: Package): Promise<BuildResult> {
|
|||
}
|
||||
|
||||
async function should_clean() {
|
||||
if (pkg.project == 'tea.xyz') return
|
||||
// only required as we aren't passing everything into hydrate
|
||||
const depends_on_self = () => deps.build.some(x => x.project === pkg.project)
|
||||
const wet_dep = () => wet.pkgs.some(x => x.project === pkg.project)
|
||||
|
|
Loading…
Reference in a new issue