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).

Merged from wsjtx-1.4 branch.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4906 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-01-26 12:12:35 +00:00
parent 418e0f804a
commit e37217ddb9
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