pantry/projects/npmjs.com/pake-cli/package.yml
Jacob Heider b875ccee6f
+pake-cli (#5990)
* wip

currently requires rust x86-64 on aarch64 to build: https://github.com/tw93/Pake/issues/14

* wip

* wip

* wip

* fix tests
2024-04-25 20:43:04 -04:00

45 lines
1.1 KiB
YAML

distributable:
url: https://github.com/tw93/Pake/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1
provides:
- bin/pake
versions:
github: tw93/Pake
strip: /V/
platforms: [darwin]
# linux needs webkit2gtk and possibly other tauri deps packaged
dependencies:
nodejs.org: '>=16'
npmjs.com: '*'
rust-lang.org: '>=1.63'
rust-lang.org/cargo: '*'
darwin:
github.com/create-dmg/create-dmg: 1
linux:
freedesktop.org/pkg-config: ^0.29
cairographics.org: 1
gnome.org/pango: 1
gnome.org/gdk-pixbuf: 2
gnome.org/atk: 2
libsoup.org: ~2.74
gnome.org/librsvg: 2
gnome.org/vala: 0
gtk.org/gtk3: 3
# needs webkit2gtk as well
build:
- run: sed -i 's/var version = ".*";/var version = "{{version}}";/' cli.js
working-directory: dist
- npm install --global --prefix={{prefix}} --install-links .
test:
# we'd love to do this, but it opens the DMG in finder, which fails headless.
# pake --name pkgx pkgx.sh
- run: test "$(pake --version)" = "{{version}}"
if: darwin
- run: pake --name pkgx pkgx.sh --targets=deb
if: linux