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
@@ -25,12 +25,6 @@ class BitwardenCli < Formula
2525 depends_on "node"
2626
2727 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-
3428 system "npm" , "install" , *std_npm_args ( prefix : false ) , "--ignore-scripts"
3529 cd buildpath /"apps/cli" do
3630 # The `oss` build of Bitwarden is a GPL backed build
@@ -39,13 +33,6 @@ def install
3933 end
4034 bin . install_symlink libexec . glob ( "bin/*" )
4135
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-
4936 generate_completions_from_executable ( bin /"bw" , "completion" , "--shell" , shells : [ :zsh ] )
5037 end
5138
0 commit comments