summaryrefslogtreecommitdiffstats
path: root/src/etc/installer/pkg/Distribution.xml
blob: 64f6bab9bb5f183e23f84ff8fa8e736aa494bfec (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="2">
    <title>The Rust Compiler</title>
    <license file="LICENSE.txt" mime-type="text/plain"/>
    <pkg-ref id="org.rust-lang.rust"/>
    <options customize="always" require-scripts="false" hostArchitectures="i386,x86_64"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true" />
    <volume-check>
        <allowed-os-versions>
            <os-version min="10.7"/>
        </allowed-os-versions>
    </volume-check>
    <choices-outline>
      <line choice="install">
      <line choice="rustc"/>
      <line choice="rust-std"/>
      <line choice="cargo"/>
      <line choice="rust-docs"/>
      </line>
      <line choice="uninstall" />
    </choices-outline>
    <!--
    These 'selected' scripts ensure that install and uninstall can never be selected at
    the same time. Exectly how they work is pretty mysterious, tied to the unspecified algorithm
    the installer uses to traverse the options after one is toggled.
      -->
    <choice id="install" visible="true"
        title="Install Rust" description="Install the Rust compiler, package manager and documentation."
        customLocation="/usr/local"
        selected="!choices.uninstall.selected"
        />
    <choice id="uninstall" visible="true"
        title="Uninstall Rust" description="Select this option to uninstall an existing Rust installation."
        customLocation="/usr/local"
        selected="!(choices.install.selected || choices.rustc.selected || choices.cargo.selected || choices['rust-docs'].selected)"
        start_selected="false"
        >
        <pkg-ref id="org.rust-lang.uninstall"/>
    </choice>
    <choice id="rustc" visible="true"
        title="Compiler" description="rustc, the Rust compiler, and rustdoc, the API documentation tool."
        selected="(!choices.uninstall.selected &amp;&amp; choices.rustc.selected) || (choices.uninstall.selected &amp;&amp; choices.install.selected)"
        >
        <pkg-ref id="org.rust-lang.rustc"/>
    </choice>
    <choice id="cargo" visible="true"
        title="Cargo" description="cargo, the Rust package manager."
        selected="(!choices.uninstall.selected &amp;&amp; choices.cargo.selected) || (choices.uninstall.selected &amp;&amp; choices.install.selected)"
        >
        <pkg-ref id="org.rust-lang.cargo"/>
    </choice>
    <choice id="rust-std" visible="true"
        title="Standard Library" description="The Rust standard library."
        selected="(!choices.uninstall.selected &amp;&amp; choices['rust-std'].selected) || (choices.uninstall.selected &amp;&amp; choices.install.selected)"
        >
        <pkg-ref id="org.rust-lang.rust-std"/>
    </choice>
    <choice id="rust-docs" visible="true"
        title="Documentation" description="HTML documentation."
        selected="(!choices.uninstall.selected &amp;&amp; choices['rust-docs'].selected) || (choices.uninstall.selected &amp;&amp; choices.install.selected)"
        >
        <pkg-ref id="org.rust-lang.rust-docs"/>
    </choice>
    <pkg-ref id="org.rust-lang.rustc" version="0" onConclusion="none">rustc.pkg</pkg-ref>
    <pkg-ref id="org.rust-lang.cargo" version="0" onConclusion="none">cargo.pkg</pkg-ref>
    <pkg-ref id="org.rust-lang.rust-docs" version="0" onConclusion="none">rust-docs.pkg</pkg-ref>
    <pkg-ref id="org.rust-lang.rust-std" version="0" onConclusion="none">rust-std.pkg</pkg-ref>
    <pkg-ref id="org.rust-lang.uninstall" version="0" onConclusion="none">uninstall.pkg</pkg-ref>
    <background file="rust-logo.png" mime-type="image/png"
                alignment="bottomleft"/>
</installer-gui-script>