From: Ramakrishnan Muthukrishnan <ram@leastauthority.com> Date: Mon, 13 Oct 2014 16:01:16 +0000 (+0530) Subject: Distribution.xml file and scripts for building the OSX package. X-Git-Tag: allmydata-tahoe-1.10.1a1~108^2~1 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/rgr-080307.php?a=commitdiff_plain;h=b07446ffc613787a4c4408746d374f4b557e3696;p=tahoe-lafs%2Ftahoe-lafs.git Distribution.xml file and scripts for building the OSX package. --- diff --git a/misc/build_helpers/osx/Distribution.xml b/misc/build_helpers/osx/Distribution.xml new file mode 100644 index 00000000..7662a98f --- /dev/null +++ b/misc/build_helpers/osx/Distribution.xml @@ -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> diff --git a/misc/build_helpers/osx/scripts/postinstall b/misc/build_helpers/osx/scripts/postinstall new file mode 100755 index 00000000..aefc4fd3 --- /dev/null +++ b/misc/build_helpers/osx/scripts/postinstall @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "/Applications/tahoe.app/bin" >> /etc/paths.d/tahoe