-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
Distribution.xml
47 lines (44 loc) 路 1.74 KB
/
Distribution.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
<pkg-ref id="sh.brew.homebrew"/>
<options customize="never" hostArchitectures="x86_64,arm64" rootVolumeOnly="true"/>
<volume-check>
<allowed-os-versions>
<os-version min="11.0.0"/>
</allowed-os-versions>
</volume-check>
<choices-outline>
<line choice="default">
<line choice="sh.brew.homebrew"/>
</line>
</choices-outline>
<choice id="default"/>
<choice id="sh.brew.homebrew" visible="false">
<pkg-ref id="sh.brew.homebrew"/>
</choice>
<pkg-ref id="sh.brew.homebrew" onConclusion="none">Homebrew.pkg</pkg-ref>
<title>Homebrew</title>
<organization>sh.brew</organization>
<background file="Homebrew.png" alignment="bottomleft" scaling="proportional"/>
<background-darkAqua file="Homebrew.png" alignment="bottomleft" scaling="proportional"/>
<welcome file="WELCOME.rtf"/>
<license file="LICENSE.rtf"/>
<conclusion file="CONCLUSION.rtf" />
<allowed-os-versions>
<os-version min="11.0"/>
</allowed-os-versions>
<script>
function installation_check() {
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git") ||
system.files.fileExistsAtPath("/Applications/Xcode.app/Contents/Developer/usr/bin/git")) {
return true;
} else {
my.result.title = "Xcode 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.type = "Fatal";
return false;
}
}
</script>
<installation-check script="installation_check()" />
</installer-gui-script>