homebrew-cask/Casks/copyq.rb

24 lines
799 B
Ruby
Raw Normal View History

2016-02-29 05:03:40 +08:00
cask 'copyq' do
2018-02-20 05:26:03 +08:00
version '3.2.0'
sha256 '6e72f41bb4e899493844b2d4affdcc8735b2b9984bff1ea0b7bdb329aaa624f9'
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',
2018-02-20 05:26:03 +08:00
checkpoint: '54d7387e3b126e000d06a0079f14330d73f68e4e57d6c67c355e1ef8b0f0769e'
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
#!/bin/bash
exec '#{appdir}/CopyQ.app/Contents/MacOS/copyq' "$@"
EOS
end
2016-02-29 05:03:40 +08:00
end