Distribution.xml file and scripts for building the OSX package.

This commit is contained in:
Ramakrishnan Muthukrishnan 2014-10-13 21:31:16 +05:30 committed by Daira Hopwood
parent fad766a885
commit b07446ffc6
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-script minSpecVersion="1">
<!-- The original version was generated by PackageMaker -->
<!-- Reference Documentation for installer scripts: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html -->
<title>Tahoe-LAFS</title>
<options customize="never" allow-external-scripts="no" rootVolumeOnly="yes" />
<installation-check script="(function(){
if(system.sysctl('hw.machine') != 'x86_64'){
my.result.type = 'Fatal';
my.result.message = 'x86_64 system required';
return false;
}
return true;
})()" />
<volume-check>
<allowed-os-versions>
<os-version min="10.7" />
</allowed-os-versions>
</volume-check>
<choices-outline>
<line choice="choice0"/>
</choices-outline>
<choice id="choice0" visible="false">
<pkg-ref id="com.leastauthority.tahoe"/>
</choice>
<pkg-ref id="com.leastauthority.tahoe" version="1.10.0" auth="Root">tahoe-lafs.pkg</pkg-ref>
<license language="en" mime-type="text/plain"><![CDATA[
Copyright 2006-2014 The Tahoe-LAFS Software Foundation
You may use this package under the GNU General Public License, version 2 or, at
your option, any later version. You may use this package under the Transitive
Grace Period Public Licence, version 1.0, or at your option, any later
version. (You may choose to use this package under the terms of either licence,
at your option.) See the file 'COPYING.GPL' for the terms of the GNU General
Public License, version 2. See the file 'COPYING.TGPPL.rst' for the terms of
the Transitive Grace Period Public Licence, version 1.0.
]]></license>
</installer-script>

View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "/Applications/tahoe.app/bin" >> /etc/paths.d/tahoe