cask 'copyq' do version '3.10.0' sha256 '647db6305c4ad975b2dddef23aac648e1d61dde827df4e00a3b6f3c506f1848d' # github.com/hluk/CopyQ was verified as official when first introduced to the cask url "https://github.com/hluk/CopyQ/releases/download/v#{version}/CopyQ.dmg" appcast 'https://github.com/hluk/CopyQ/releases.atom' name 'CopyQ' homepage 'https://hluk.github.io/CopyQ/' app 'CopyQ.app' # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809) shimscript = "#{staged_path}/copyq.wrapper.sh" binary shimscript, target: 'copyq' preflight do IO.write shimscript, <<~EOS #!/bin/bash exec '#{appdir}/CopyQ.app/Contents/MacOS/CopyQ' "$@" EOS end end