From 5893e602855dd8de085746577aee7f0a59b9694e Mon Sep 17 00:00:00 2001 From: Corentin Mors Date: Mon, 20 May 2024 17:31:34 +0200 Subject: [PATCH] Test brew package on Linux --- .DS_Store | Bin 0 -> 6148 bytes .github/workflows/test-formula.yml | 25 +++++++++++++++++++++---- Formula/dashlane-cli.rb | 12 ++++++++---- 3 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e502910b982e14088e5aaaaa0d2753e6710e0ef4 GIT binary patch literal 6148 zcmeHKQA)!=5S^(3Bl^)l{oE4>y@13Ldx3!8S_^HlAw?|y=1)9}7w`gtchF0C1K;dU z+icVNr-;nJ?Ay%F>`q=nCPPHrUyOQ0T_Q@Mf}H~lTSV4HThdX>5s+n%*|=BSROP(o zX@+?zD-AElmX@7Yx zO=v;G=yc-SwnsCE&*%4L4jcQF)jE^iUQs^&{YO3ns_2eNWHY1dIG^Of=M#A}^Lcw| z#=`3JjsFEe3~h*q!=iigmycPOQxb>&dJg3j5Qszw_?ISwI_& z0b?L$U@u&DrT$;+?*HQ;yD|ohfq%sSCwY> $GITHUB_PATH - name: Install Dashlane CLI from rb file run: brew install --build-from-source Formula/dashlane-cli.rb diff --git a/Formula/dashlane-cli.rb b/Formula/dashlane-cli.rb index b74d474..9137684 100644 --- a/Formula/dashlane-cli.rb +++ b/Formula/dashlane-cli.rb @@ -12,12 +12,16 @@ class DashlaneCli < Formula strategy :github_latest end - option 'with-corepack', 'Use yarn from corepack instead of installing it' + option "with-corepack", "Use yarn from corepack instead of installing it" depends_on "node@18" => :build - - depends_on 'yarn' if !build.with?('corepack') - depends_on 'corepack' if build.with?('corepack') + + # Needed for node-gyp packages + depends_on "python" => :build + depends_on "python-setuptools" => :build + + depends_on "yarn" if !build.with?("corepack") + depends_on "corepack" if build.with?("corepack") on_macos do # macos 12+ only