pantry/projects/bitwarden.com/package.yml
Jacob Heider c5548d52a5 fix(bitwarden)
closes #6405
2024-06-12 13:19:54 -04:00

42 lines
801 B
YAML

distributable:
url: https://registry.npmjs.org/@bitwarden/cli/-/cli-{{version}}.tgz
strip-components: 1
versions:
npm: '@bitwarden/cli'
dependencies:
nodejs.org: ^20
build:
dependencies:
npmjs.com: '*'
linux/x86-64:
python.org: ^3 # needed to build some native modules
script:
- npm i husky
- git init
- npm i $ARGS .
- run: ln -s ../libexec/bin/bw bw
working-directory: ${{prefix}}/bin
env:
linux:
CC: clang
CXX: clang++
LD: clang
ARGS:
- -ddd
- --global
- --build-from-source
- --prefix={{prefix}}/libexec
- --install-links
- --unsafe-perm
provides:
- bin/bw
test:
- bw generate --length 10
- echo "Testing" | bw encode | grep 'VGVzdGluZw'
- bw --version | grep {{version}}