cask 'copyq' do version '3.0.3' sha256 '631ede047c31b7c51f5f306bbd86462d95970859c2978f74f81f58e545b0b5eb' # 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', checkpoint: '00cbe9952b51805ad47670303d3059a8355f442ed23995d9e72629dcf4d39c1c' name 'CopyQ' homepage 'https://hluk.github.io/CopyQ/' app 'CopyQ.app' # shim script (https://github.com/caskroom/homebrew-cask/issues/18809) shimscript = "#{staged_path}/copyq.wrapper.sh" binary shimscript, target: 'copyq' preflight do IO.write shimscript, <<-EOS.undent #!/bin/bash exec '#{appdir}/CopyQ.app/Contents/MacOS/copyq' "$@" EOS end end