11class BitwardenCli < Formula
22 desc "Secure and free password manager for all of your devices"
33 homepage "https://bitwarden.com/"
4- url "https://github.com/bitwarden/clients/archive/refs/tags/cli-v2025.6.1 .tar.gz"
5- sha256 "73d620b95e3554ed980a582f36e5f8a62d7a5839841179281470bc2b973ad96c "
4+ url "https://github.com/bitwarden/clients/archive/refs/tags/cli-v2025.7.0 .tar.gz"
5+ sha256 "a3e603683504e7e56c839b7408cacfc1a5a19cb0310f7431ec18c254224d82bc "
66 license "GPL-3.0-only"
77 head "https://github.com/bitwarden/clients.git" , branch : "main"
88
@@ -12,25 +12,18 @@ class BitwardenCli < Formula
1212 end
1313
1414 bottle do
15- rebuild 1
16- sha256 arm64_sequoia : "9772c36c8aab4b81715e436afb5f4a399ee14f1fb32be9d89a50c5619761b5a5"
17- sha256 arm64_sonoma : "f086ee3c0bfbd5f1bcb5b94182f52e3c083dd85bfd8733f7eca99b7a1ff61199"
18- sha256 arm64_ventura : "6b49cb1f49bc906daacdc85bc93a41d909aed4d3c7d243fc95a854f7ffa938df"
19- sha256 sonoma : "b92e64400f954245970ce1ca7b6c020f7419e77751cd3828b00977dacb06a393"
20- sha256 ventura : "708dc028144ae0e45acf31ddd80f52d3e8f135f18128b594058e38e40068f640"
21- sha256 cellar : :any_skip_relocation , arm64_linux : "49d41e45a26c550bcadda01c1557fc314c5acdcb8b4a7e71c5463bec829611ac"
22- sha256 cellar : :any_skip_relocation , x86_64_linux : "cf2c06a2c6880a18b3bb29ae69ae4c9476082de7f2a949332db1ef2920773c29"
15+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "8b1f9d8e9f2a11e128d811b25f500ff8c5f3b1403b66d7d6b43e0bac9c55791d"
16+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "8b1f9d8e9f2a11e128d811b25f500ff8c5f3b1403b66d7d6b43e0bac9c55791d"
17+ sha256 cellar : :any_skip_relocation , arm64_ventura : "8b1f9d8e9f2a11e128d811b25f500ff8c5f3b1403b66d7d6b43e0bac9c55791d"
18+ sha256 cellar : :any_skip_relocation , sonoma : "11a4044c2d6407e4ba53a962163d2528e2c20f6afa05cbfb7ab216870b9a55eb"
19+ sha256 cellar : :any_skip_relocation , ventura : "11a4044c2d6407e4ba53a962163d2528e2c20f6afa05cbfb7ab216870b9a55eb"
20+ sha256 cellar : :any_skip_relocation , arm64_linux : "8b1f9d8e9f2a11e128d811b25f500ff8c5f3b1403b66d7d6b43e0bac9c55791d"
21+ sha256 cellar : :any_skip_relocation , x86_64_linux : "8b1f9d8e9f2a11e128d811b25f500ff8c5f3b1403b66d7d6b43e0bac9c55791d"
2322 end
2423
2524 depends_on "node"
2625
2726 def install
28- # Fix to build error with xcode 16.3 for `argon2`
29- # Issue ref:
30- # - https://github.com/bitwarden/clients/issues/15000
31- # - https://github.com/ranisalt/node-argon2/issues/448
32- inreplace [ "package.json" , "apps/cli/package.json" ] , '"argon2": "0.41.1"' , '"argon2": "0.43.0"'
33-
3427 system "npm" , "install" , *std_npm_args ( prefix : false ) , "--ignore-scripts"
3528 cd buildpath /"apps/cli" do
3629 # The `oss` build of Bitwarden is a GPL backed build
@@ -39,13 +32,6 @@ def install
3932 end
4033 bin . install_symlink libexec . glob ( "bin/*" )
4134
42- # Remove incompatible pre-built `argon2` binaries
43- os = OS . kernel_name . downcase
44- arch = Hardware ::CPU . intel? ? "x64" : Hardware ::CPU . arch . to_s
45- node_modules = libexec /"lib/node_modules/@bitwarden/cli/node_modules"
46- node_modules . glob ( "argon2/prebuilds/linux-*/argon2*.musl.node" ) . map ( &:unlink )
47- ( node_modules /"argon2/prebuilds" ) . each_child { |dir | rm_r ( dir ) if dir . basename . to_s != "#{ os } -#{ arch } " }
48-
4935 generate_completions_from_executable ( bin /"bw" , "completion" , "--shell" , shells : [ :zsh ] )
5036 end
5137
0 commit comments