mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 23:57:10 -04:00
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:
parent
c6882c7dad
commit
c9969fd6c7
@ -140,13 +140,7 @@ script WSJTAppDelegate
|
|||||||
try
|
try
|
||||||
set target to installRoot & "/Contents/MacOS/" & kvasd's targetName
|
set target to installRoot & "/Contents/MacOS/" & kvasd's targetName
|
||||||
do shell script "cp " & kvasd's destination() & kvasd's targetName & space & target
|
do shell script "cp " & kvasd's destination() & kvasd's targetName & space & target
|
||||||
repeat with theLine in paragraphs of (do shell script "otool -L " & target)
|
do shell script "chmod +x " & 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
|
|
||||||
display alert "KVASD installed into application bundle:" & return & return & installRoot ¬
|
display alert "KVASD installed into application bundle:" & return & return & installRoot ¬
|
||||||
buttons {"Ok"} default button "Ok" ¬
|
buttons {"Ok"} default button "Ok" ¬
|
||||||
giving up after 5
|
giving up after 5
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user