bandage 0.8.1: Add binary (#37909)

* bandage 0.8.1: Add binary

A shell shim script is needed. A symlink gives the error:
This application failed to start because it could not find
or load the Qt platform plugin "minimal" in "". Reinstalling
the application may fix this problem.

This issue has been reported upstream:
https://github.com/rrwick/Bandage/issues/22

* shimscript
This commit is contained in:
Shaun Jackman 2017-08-23 04:54:36 -07:00 committed by Miccal Matthews
parent 77dc0ae1ba
commit 5646867dbb
1 changed files with 10 additions and 0 deletions

View File

@ -10,4 +10,14 @@ cask 'bandage' do
homepage 'https://rrwick.github.io/Bandage/'
app 'Bandage.app'
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/bandage.wrapper.sh"
binary shimscript, target: 'bandage'
preflight do
IO.write shimscript, <<-EOS.undent
#!/bin/sh
exec '#{appdir}/Bandage.app/Contents/MacOS/Bandage' "$@"
EOS
end
end