homebrew-cask/Casks/copyq.rb

24 lines
806 B
Ruby
Raw Normal View History

2016-02-29 05:03:40 +08:00
cask 'copyq' do
2017-10-21 17:55:10 +08:00
version '3.1.2'
sha256 '6bf987314f4f7628b30dc62d77e301647b51ba23d7cf825e23d4cd525157db59'
2016-02-29 05:03:40 +08:00
# github.com/hluk/CopyQ was verified as official when first introduced to the cask
2016-12-04 00:05:00 +08:00
url "https://github.com/hluk/CopyQ/releases/download/v#{version}/CopyQ.dmg"
2016-02-29 05:03:40 +08:00
appcast 'https://github.com/hluk/CopyQ/releases.atom',
2017-10-21 17:55:10 +08:00
checkpoint: '6d34b7f05320fc7bc54b3c2bf51353d7e63890ff1bd3043733218cc7d8e1345a'
2016-02-29 05:03:40 +08:00
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
2016-02-29 05:03:40 +08:00
end