Skip to content

Commit

Permalink
migrate 1password-cli@beta
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 27, 2024
1 parent a30640c commit 68df806
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Casks/1/1password-cli@beta.rb
@@ -0,0 +1,26 @@
cask "1password-cli@beta" do
version "2.23.0-beta.01"
sha256 "79f6b4fb2b58733c6b69a1ac9ccfb4f7255eec20a089ed29322ca93c76710856"

url "https://cache.agilebits.com/dist/1P/op2/pkg/v#{version}/op_apple_universal_v#{version}.pkg",
verified: "cache.agilebits.com/dist/1P/op2/pkg/"
name "1Password CLI"
desc "Command-line helper for the 1Password password manager"
homepage "https://developer.1password.com/docs/cli"

livecheck do
url "https://app-updates.agilebits.com/product_history/CLI2"
regex(%r{href=.*?/op_apple_universal[._-]v?(\d+(?:\.\d+)+-beta\.\d+)\.pkg}i)
end

conflicts_with cask: [
"1password-cli",
"1password-cli@1",
]

pkg "op_apple_universal_v#{version}.pkg"

uninstall pkgutil: "com.1password.op"

zap trash: "~/.config/op"
end

0 comments on commit 68df806

Please sign in to comment.