Merge pull request #15810 from MikeMcQuaid/pkg_require_clt

package/Distribution: always require CLT.
This commit is contained in:
Mike McQuaid 2023-08-03 12:21:20 +01:00 committed by GitHub
commit 24b6b3494d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,13 +31,13 @@
</allowed-os-versions> </allowed-os-versions>
<script> <script>
// See https://developer.apple.com/documentation/installer_js
function installation_check() { function installation_check() {
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git") || if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git")) {
system.files.fileExistsAtPath("/Applications/Xcode.app/Contents/Developer/usr/bin/git")) {
return true; return true;
} else { } else {
my.result.title = "Xcode Command Line Tools (CLT) are missing"; my.result.title = "Command Line Tools (CLT) are missing";
my.result.message = "You must install the Xcode Command Line Tools (CLT) or Xcode before installing Homebrew. Install the CLT by running `xcode-select --install` from a Terminal."; my.result.message = "You must install the Command Line Tools (CLT) before installing Homebrew by running `xcode-select --install` from a Terminal.";
my.result.type = "Fatal"; my.result.type = "Fatal";
return false; return false;
} }