Skip to content
Permalink
Browse files

p4v 18.3-1719707: Add CLI-accessible commands to work with Git out of…

… the box (#54957)

- Wrapper script needed so that its embedded Qt can be found
  (i.e. just symlinking won't work, similar to kdiff3)
  • Loading branch information...
pete-woods authored and vitorgalvao committed Nov 19, 2018
1 parent 9201304 commit 12a256663370207ff198d4fdbcef53e96e06a21e
Showing with 14 additions and 0 deletions.
  1. +14 −0 Casks/p4v.rb
@@ -13,6 +13,20 @@
app 'p4admin.app'
app 'p4merge.app'
binary 'p4vc'
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
p4_wrapper = "#{staged_path}/p4.wrapper.sh"
binary p4_wrapper, target: 'p4v'
binary p4_wrapper, target: 'p4admin'
binary p4_wrapper, target: 'p4merge'

preflight do
IO.write p4_wrapper, <<~EOS
#!/bin/bash
set -euo pipefail
COMMAND=$(basename "$0")
exec "#{appdir}/${COMMAND}.app/Contents/MacOS/${COMMAND}" $@ 2> /dev/null
EOS
end

zap trash: [
'~/Library/Preferences/com.perforce.p4v',

0 comments on commit 12a2566

Please sign in to comment.
You can’t perform that action at this time.