Remove usage of otool and install_name_tool from Mac KVASD installer

These tools are no longer part of a standard OS X install and would need to be
installed via the Xcode commnd line tools. Instead the KVASD binary has been
preprocessed and the Mac KVASD installer simply injects the KVASD binary into
the target application bundle(s).

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4905 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-01-26 12:08:57 +00:00
parent c6882c7dad
commit c9969fd6c7
3 changed files with 1 additions and 7 deletions

View File

@ -140,13 +140,7 @@ script WSJTAppDelegate
try
set target to installRoot & "/Contents/MacOS/" & kvasd's targetName
do shell script "cp " & kvasd's destination() & kvasd's targetName & space & target
repeat with theLine in paragraphs of (do shell script "otool -L " & target)
if theLine contains ".dylib" and not theLine contains "libSystem" then
set theDylib to 2nd item of split(theLine,{tab,space})
do shell script "install_name_tool -change " & theDylib & " @executable_path/" & last item of split(theDylib,{"/"}) & space & target
end if
end repeat
log do shell script "chmod +x " & target
do shell script "chmod +x " & target
display alert "KVASD installed into application bundle:" & return & return & installRoot ¬
buttons {"Ok"} default button "Ok" ¬
giving up after 5