excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / vieb.rb
blobc308cca0e31e041b5a614b7127f375b6fee66a3e
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   app "Vieb.app"
15   # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
16   shimscript = "#{staged_path}/vieb.wrapper.sh"
17   binary shimscript, target: "vieb"
19   preflight do
20     File.write shimscript, <<~EOS
21       #!/bin/sh
22       exec '#{appdir}/Vieb.app/Contents/MacOS/Vieb' "$@"
23     EOS
24   end
26   zap trash: [
27     "~/Library/Application Support/Vieb",
28     "~/Library/Caches/Vieb",
29   ]
30 end