cask "vieb" do arch arm: "arm64-" version "12.0.0" sha256 arm: "6ee46f727676f4985088e38ee9397fc44506cbed6957640d18b95a37c0a201c3", intel: "2445bb822440585c9cdcc3866064ac860757f66e5bef9aa20df458e421effab5" url "https://github.com/Jelmerro/Vieb/releases/download/#{version}/Vieb-#{version}-#{arch}mac.zip", verified: "github.com/Jelmerro/Vieb/" name "Vieb" desc "Vim Inspired Electron Browser" homepage "https://vieb.dev/" app "Vieb.app" # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809) shimscript = "#{staged_path}/vieb.wrapper.sh" binary shimscript, target: "vieb" preflight do File.write shimscript, <<~EOS #!/bin/sh exec '#{appdir}/Vieb.app/Contents/MacOS/Vieb' "$@" EOS end zap trash: [ "~/Library/Application Support/Vieb", "~/Library/Caches/Vieb", ] end