homebrew-cask/Casks/copyq.rb

23 lines
709 B
Ruby
Raw Normal View History

2016-02-29 05:03:40 +08:00
cask 'copyq' do
2018-06-19 01:18:14 +08:00
version '3.5.0'
sha256 '909c059c6717daa1932765b47beedbabe4c34a6799746bcedc014c28632e1c79'
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"
2018-06-12 22:37:26 +08:00
appcast 'https://github.com/hluk/CopyQ/releases.atom'
2016-02-29 05:03:40 +08:00
name 'CopyQ'
homepage 'https://hluk.github.io/CopyQ/'
app 'CopyQ.app'
2018-05-22 03:21:38 +08:00
# 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
2016-02-29 05:03:40 +08:00
end