-
Notifications
You must be signed in to change notification settings - Fork 8
/
distribution.xml
74 lines (71 loc) · 3.36 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--
https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/DistributionDefinitionRef/
https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/InstallerJavaScriptRef/
-->
<installer-gui-script minSpecVersion="2">
<title>SU_TITLE</title>
<allowed-os-versions>
<os-version min="10.10"/>
</allowed-os-versions>
<options customize="allow" require-scripts="false" rootVolumeOnly="true" hostArchitectures="arm64,x86_64"/>
<!--domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/-->
<background file="background.png" alignment="bottomleft" mime-type="image/png" scaling="none" />
<welcome file="Welcome.html" mime-type="text/html"/>
<conclusion file="Conclusion.html" mime-type="text/html"/>
<installation-check script="pm_install_check();"/>
<script>
<![CDATA[
function pm_install_check() {
if(system.compareVersions(system.version.ProductVersion, '12.0') < 0) {
my.result.title = system.localizedString('SU_ERROR');
my.result.message = system.localizedString('SU_12');
my.result.type = 'Fatal';
return false;
}
return true;
}
function pm_firefox_selected() {
return my.target.receiptForIdentifier("ee.ria.open-eid") == null ||
(my.target.receiptForIdentifier("ee.ria.firefox-pkcs11-loader") != null ||
my.target.receiptForIdentifier("ee.ria.token-signing-firefox") != null ||
my.target.receiptForIdentifier("eu.web-eid.web-eid-firefox") != null);
}
function pm_chrome_selected() {
return my.target.receiptForIdentifier("ee.ria.open-eid") == null ||
(my.target.receiptForIdentifier("ee.ria.chrome-token-signing") != null ||
my.target.receiptForIdentifier("ee.ria.token-signing-chrome") != null ||
my.target.receiptForIdentifier("eu.web-eid.web-eid-chrome") != null);
}
function pm_drivers_selected() {
return my.target.receiptForIdentifier("ee.ria.open-eid") == null ||
my.target.receiptForIdentifier("ee.ria.esteid-ctk-tokend") != null;
}
]]>
</script>
<choices-outline>
<line choice="default"/>
<line choice="native"/>
<line choice="firefox"/>
<line choice="chrome"/>
<line choice="drivers"/>
</choices-outline>
<choice id="default" title="SU_BASE" start_enabled="false" visible="false">
<pkg-ref id="ee.ria.updater">updater.pkg</pkg-ref>
<pkg-ref id="ee.ria.open-eid">Open-EID.pkg</pkg-ref>
</choice>
<choice id="native" title="SU_BASE" visible="false"
start_enabled="choices.chrome.selected || choices.firefox.selected"
selected="choices.chrome.selected || choices.firefox.selected">
<pkg-ref id="eu.web-eid.web-eid">web-eid-native.pkg</pkg-ref>
</choice>
<choice id="firefox" title="SU_FIREFOX" description="SU_FIREFOX" start_selected="pm_firefox_selected()">
<pkg-ref id="eu.web-eid.web-eid-firefox">web-eid-firefox.pkg</pkg-ref>
</choice>
<choice id="chrome" title="SU_CHROME" description="SU_CHROME" start_selected="pm_chrome_selected()">
<pkg-ref id="eu.web-eid.web-eid-chrome">web-eid-chrome.pkg</pkg-ref>
</choice>
<choice id="drivers" title="SU_DRIVERS" description="SU_DRIVERS" start_selected="pm_drivers_selected()">
<pkg-ref id="ee.ria.esteid-ctk-tokend">esteid-ctk-tokend.pkg</pkg-ref>
</choice>
</installer-gui-script>