2015-12-18 09:15:28 +08:00
|
|
|
cask 'bandage' do
|
2016-12-16 11:42:55 +08:00
|
|
|
version '0.8.1'
|
|
|
|
sha256 '13e90e5824b61bd4abe62afa8785a28627714bf7a3d4dad3edb4b8f9854d3b6d'
|
2015-02-24 05:45:32 +08:00
|
|
|
|
2016-02-11 05:01:36 +08:00
|
|
|
# github.com/rrwick/Bandage was verified as official when first introduced to the cask
|
2016-07-15 20:35:22 +08:00
|
|
|
url "https://github.com/rrwick/Bandage/releases/download/v#{version}/Bandage_Mac_v#{version.dots_to_underscores}.zip"
|
2015-12-26 04:57:40 +08:00
|
|
|
appcast 'https://github.com/rrwick/Bandage/releases.atom',
|
2017-07-27 08:00:32 +08:00
|
|
|
checkpoint: '538b835e813476438dcfb0fca69c044b4c2766c5e65b5bba1980c3c33c1dc81f'
|
2015-02-24 05:45:32 +08:00
|
|
|
name 'Bandage'
|
2015-06-29 14:32:18 +08:00
|
|
|
homepage 'https://rrwick.github.io/Bandage/'
|
2015-02-24 05:45:32 +08:00
|
|
|
|
|
|
|
app 'Bandage.app'
|
2017-08-23 19:54:36 +08:00
|
|
|
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
|
|
|
|
shimscript = "#{staged_path}/bandage.wrapper.sh"
|
|
|
|
binary shimscript, target: 'bandage'
|
|
|
|
|
|
|
|
preflight do
|
2017-10-22 23:36:29 +08:00
|
|
|
IO.write shimscript, <<~EOS
|
2017-08-23 19:54:36 +08:00
|
|
|
#!/bin/sh
|
|
|
|
exec '#{appdir}/Bandage.app/Contents/MacOS/Bandage' "$@"
|
|
|
|
EOS
|
|
|
|
end
|
2015-02-24 05:45:32 +08:00
|
|
|
end
|