35 lines
1.2 KiB
Ruby
35 lines
1.2 KiB
Ruby
cask "cutter" do
|
|
version "1.12.0"
|
|
sha256 "700327f904de00a29b8622eb7548b96181c50f0842d726a84be2a8f7558cae83"
|
|
|
|
# github.com/radareorg/cutter/ was verified as official when first introduced to the cask
|
|
url "https://github.com/radareorg/cutter/releases/download/v#{version}/Cutter-v#{version}-x64.macOS.dmg"
|
|
appcast "https://github.com/radareorg/cutter/releases.atom"
|
|
name "Cutter"
|
|
desc "Reverse engineering platform powered by radare2"
|
|
homepage "https://cutter.re/"
|
|
|
|
depends_on macos: ">= :sierra"
|
|
|
|
app "Cutter.app"
|
|
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
|
|
shimscript = "#{staged_path}/cutter.wrapper.sh"
|
|
binary shimscript, target: "cutter"
|
|
|
|
preflight do
|
|
IO.write shimscript, <<~EOS
|
|
#!/bin/sh
|
|
'#{appdir}/Cutter.app/Contents/MacOS/Cutter' "$@"
|
|
EOS
|
|
end
|
|
|
|
zap trash: [
|
|
"~/.config/RadareOrg",
|
|
"~/.local/share/radare2",
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.radare.cutter.sfl*",
|
|
"~/Library/Application Support/RadareOrg",
|
|
"~/Library/Preferences/org.radare.cutter.plist",
|
|
"~/Library/Saved Application State/org.radare.cutter.savedState",
|
|
]
|
|
end
|