xcode: add update instruction helpers.
This commit is contained in:
parent
012fc4709a
commit
0e25fc0143
@ -72,6 +72,19 @@ module OS
|
||||
!prefix.nil?
|
||||
end
|
||||
|
||||
def update_instructions
|
||||
if MacOS.version >= "10.9" && !OS::Mac.prerelease?
|
||||
<<-EOS.undent
|
||||
Xcode can be updated from the App Store.
|
||||
EOS
|
||||
else
|
||||
<<-EOS.undent
|
||||
Xcode can be updated from
|
||||
https://developer.apple.com/xcode/downloads/
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
def version
|
||||
# may return a version string
|
||||
# that is guessed based on the compiler, so do not
|
||||
@ -166,6 +179,20 @@ module OS
|
||||
!!detect_version
|
||||
end
|
||||
|
||||
def update_instructions
|
||||
if MacOS.version >= "10.9"
|
||||
<<-EOS.undent
|
||||
Update them from Software Update in the App Store.
|
||||
EOS
|
||||
elsif MacOS.version == "10.8" || MacOS.version == "10.7"
|
||||
<<-EOS.undent
|
||||
The standalone package can be obtained from
|
||||
https://developer.apple.com/downloads
|
||||
or it can be installed via Xcode's preferences.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
def latest_version
|
||||
case MacOS.version
|
||||
when "10.12" then "800.0.33.1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user