os/mac/xcode: update download url

Closes #12174.
This commit is contained in:
Carlo Cabrera 2021-10-04 22:22:20 +08:00
parent ebc0783c5f
commit bcc3cd7819
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -14,6 +14,7 @@ module OS
DEFAULT_BUNDLE_PATH = Pathname("/Applications/Xcode.app").freeze DEFAULT_BUNDLE_PATH = Pathname("/Applications/Xcode.app").freeze
BUNDLE_ID = "com.apple.dt.Xcode" BUNDLE_ID = "com.apple.dt.Xcode"
OLD_BUNDLE_ID = "com.apple.Xcode" OLD_BUNDLE_ID = "com.apple.Xcode"
APPLE_DEVELOPER_DOWNLOAD_URL = "https://developer.apple.com/download/all/"
# Bump these when a new version is available from the App Store and our # Bump these when a new version is available from the App Store and our
# CI systems have been updated. # CI systems have been updated.
@ -149,7 +150,7 @@ module OS
if OS::Mac.version.prerelease? if OS::Mac.version.prerelease?
<<~EOS <<~EOS
Xcode can be installed from: Xcode can be installed from:
#{Formatter.url("https://developer.apple.com/download/more/")} #{Formatter.url(APPLE_DEVELOPER_DOWNLOAD_URL)}
EOS EOS
else else
<<~EOS <<~EOS
@ -163,7 +164,7 @@ module OS
if OS::Mac.version.prerelease? if OS::Mac.version.prerelease?
<<~EOS <<~EOS
Xcode can be updated from: Xcode can be updated from:
#{Formatter.url("https://developer.apple.com/download/more/")} #{Formatter.url(APPLE_DEVELOPER_DOWNLOAD_URL)}
EOS EOS
else else
<<~EOS <<~EOS
@ -298,7 +299,7 @@ module OS
# This is not available from `xcode-select` # This is not available from `xcode-select`
<<~EOS <<~EOS
Install the Command Line Tools for Xcode 11.3.1 from: Install the Command Line Tools for Xcode 11.3.1 from:
#{Formatter.url("https://developer.apple.com/download/more/")} #{Formatter.url(MacOS::Xcode::APPLE_DEVELOPER_DOWNLOAD_URL)}
EOS EOS
else else
<<~EOS <<~EOS
@ -325,7 +326,7 @@ module OS
sudo xcode-select --install sudo xcode-select --install
Alternatively, manually download them from: Alternatively, manually download them from:
#{Formatter.url("https://developer.apple.com/download/more/")}. #{Formatter.url(MacOS::Xcode::APPLE_DEVELOPER_DOWNLOAD_URL)}.
You should download the Command Line Tools for Xcode #{MacOS::Xcode.latest_version}. You should download the Command Line Tools for Xcode #{MacOS::Xcode.latest_version}.
EOS EOS
end end