Skip to content

Commit

Permalink
migrate 1password-cli@1
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 28, 2024
1 parent ca478d9 commit 7e4409b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Casks/1/1password-cli@1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cask "1password-cli@1" do
version "1.12.9"
sha256 "ff9af6a6aef58111f2279b30cebf158a2e14651176b40a649b30a12b772724a3"

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

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

pkg "op_apple_universal_v#{version}.pkg"

uninstall pkgutil: "com.1password.op"

zap trash: "~/.op"
end

0 comments on commit 7e4409b

Please sign in to comment.