23 lines
709 B
Ruby
23 lines
709 B
Ruby
cask 'copyq' do
|
|
version '3.7.1'
|
|
sha256 '44d22c91a57024a3566e1fcf74576cd50f0986d491c8f923bb7824f08ccfdad7'
|
|
|
|
# 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'
|
|
name 'CopyQ'
|
|
homepage 'https://hluk.github.io/CopyQ/'
|
|
|
|
app 'CopyQ.app'
|
|
# 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
|
|
end
|