Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / v / vieb.rb
blob14b581ccffa3d0a5d1cabcbc6459f05f5ac7561d
1 cask "vieb" do
2   arch arm: "arm64-"
4   version "12.1.0"
5   sha256 arm:   "5018df5c7c360da4b2c487f8fae0cf7d35f7e3955edbdd2c2f2abd51b7268908",
6          intel: "6201e6e596b1a56db97700133786d8b068c7c134cf79dd44035d71cd0ef42cad"
8   url "https://github.com/Jelmerro/Vieb/releases/download/#{version}/Vieb-#{version}-#{arch}mac.zip",
9       verified: "github.com/Jelmerro/Vieb/"
10   name "Vieb"
11   desc "Vim Inspired Electron Browser"
12   homepage "https://vieb.dev/"
14   depends_on macos: ">= :big_sur"
16   app "Vieb.app"
17   # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
18   shimscript = "#{staged_path}/vieb.wrapper.sh"
19   binary shimscript, target: "vieb"
21   preflight do
22     File.write shimscript, <<~EOS
23       #!/bin/sh
24       exec '#{appdir}/Vieb.app/Contents/MacOS/Vieb' "$@"
25     EOS
26   end
28   zap trash: [
29     "~/Library/Application Support/Vieb",
30     "~/Library/Caches/Vieb",
31   ]
32 end