mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
31 lines
861 B
Ruby
31 lines
861 B
Ruby
cask "vieb" do
|
|
arch arm: "arm64-"
|
|
|
|
version "10.6.0"
|
|
sha256 arm: "5b1265366f32c42b652e7a2aa4ec6b01cb23b06258a81b72df18e2f4f94c51e7",
|
|
intel: "174ff0f9d0e632c86f8176963525b49137a5afabfe3492a9f7c6c78ddff39483"
|
|
|
|
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
|