24 lines
806 B
Ruby
24 lines
806 B
Ruby
cask 'copyq' do
|
|
version '3.0.2'
|
|
sha256 'e7769a6eb9f5c078810f2874a2fa6033ad0108baa5c43a2d81ce0eec62e9dfa7'
|
|
|
|
# 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: 'd01cd301b1a44df6cba29cec178ab12c493a29e2e6bb1eae9bbfca5af91632cc'
|
|
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
|