-
Notifications
You must be signed in to change notification settings - Fork 90
/
Distribution
executable file
·36 lines (36 loc) · 1.62 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-script minSpecVersion="1.000000">
<title>__PRODUCT__</title>
<background mime-type="image/png" file="banner.png" scaling="proportional"/>
<background-darkAqua mime-type="image/png" file="banner.png" scaling="proportional"/>
<welcome file="welcome.html" mime-type="text/html" />
<conclusion file="conclusion.html" mime-type="text/html" />
<license file="LICENSE.txt"/>
<options customize="never" allow-external-scripts="no"/>
<domains enable_localSystem="true" />
<installation-check script="installCheck();"/>
<script>
function installCheck() {
if(!(system.compareVersions(system.version.ProductVersion, '10.6.0') >= 0)) {
my.result.title = 'Unable to install';
my.result.message = '__PRODUCT__ requires Mac OS X 10.6 or later.';
my.result.type = 'Fatal';
return false;
}
if(system.files.fileExistsAtPath('/Library/__PRODUCT__/__VERSION__/')) {
my.result.title = 'Previous Installation Detected';
my.result.message = 'A previous installation of __PRODUCT__ exists at /Library/__PRODUCT__/__VERSION__/. This installer will remove the previous installation prior to installing. Please back up any data before proceeding.';
my.result.type = 'Warning';
return false;
}
return true;
}
</script>
<choices-outline>
<line choice="__PRODUCT__"/>
</choices-outline>
<choice id="__PRODUCT__" title="__PRODUCT__">
<pkg-ref id="__PRODUCT__.pkg"/>
</choice>
<pkg-ref id="__PRODUCT__.pkg" auth="Root">__PRODUCT__.pkg</pkg-ref>
</installer-script>