From b875ccee6f7548f2aeeecb6a78ad45b09f326890 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 25 Apr 2024 20:43:04 -0400 Subject: [PATCH] +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 --- projects/npmjs.com/pake-cli/package.yml | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 projects/npmjs.com/pake-cli/package.yml diff --git a/projects/npmjs.com/pake-cli/package.yml b/projects/npmjs.com/pake-cli/package.yml new file mode 100644 index 00000000..0bcf5f61 --- /dev/null +++ b/projects/npmjs.com/pake-cli/package.yml @@ -0,0 +1,45 @@ +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