-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDistribution
executable file
·36 lines (36 loc) · 1.5 KB
/
Distribution
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
<options hostArchitectures="i386" customize="never"/>
<title>SU_TITLE</title>
<script/>
<volume-check script="VolumeCheck()"/>
<installation-check script="InstallationCheck()"/>
<script>
function InstallationCheck(prefix) {
if (system.compareVersions(system.version.ProductVersion, '10.10') < 0 || system.compareVersions(system.version.ProductVersion, '10.11') >= 0) {
my.result.message = system.localizedStringWithFormat('ERROR_0', '10.10');
my.result.type = 'Fatal';
return false;
}
return true;
}
function VolumeCheck(prefix) {
if (system.env.OS_INSTALL == 1) return true;
var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.10') < 0 || system.compareVersions(my.target.systemVersion.ProductVersion, '10.11') >= 0) {
my.result.message = system.localizedStringWithFormat('ERROR_0', '10.10');
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
<readme file="LZVN_ReadMe.html"/>
<choices-outline>
<line choice="manual"/>
</choices-outline>
<choice id="manual" title="SU_TITLE">
<pkg-ref id="com.AnV.Software.pkg.lzvn.1.0" auth="Root">#lzvn-1.0-apple.pkg</pkg-ref>
</choice>
<pkg-ref id="com.AnV.Software.pkg.lzvn.1.0" installKBytes="23" version="1.0"/>
</installer-gui-script>