From bcc3cd78194f432f42f15903f5d843c548d5b687 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Mon, 4 Oct 2021 22:22:20 +0800 Subject: [PATCH] os/mac/xcode: update download url Closes #12174. --- Library/Homebrew/os/mac/xcode.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 4e8851d858..7d7153c5ed 100755 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -14,6 +14,7 @@ module OS DEFAULT_BUNDLE_PATH = Pathname("/Applications/Xcode.app").freeze BUNDLE_ID = "com.apple.dt.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 # CI systems have been updated. @@ -149,7 +150,7 @@ module OS if OS::Mac.version.prerelease? <<~EOS Xcode can be installed from: - #{Formatter.url("https://developer.apple.com/download/more/")} + #{Formatter.url(APPLE_DEVELOPER_DOWNLOAD_URL)} EOS else <<~EOS @@ -163,7 +164,7 @@ module OS if OS::Mac.version.prerelease? <<~EOS Xcode can be updated from: - #{Formatter.url("https://developer.apple.com/download/more/")} + #{Formatter.url(APPLE_DEVELOPER_DOWNLOAD_URL)} EOS else <<~EOS @@ -298,7 +299,7 @@ module OS # This is not available from `xcode-select` <<~EOS 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 else <<~EOS @@ -325,7 +326,7 @@ module OS sudo xcode-select --install 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}. EOS end