From b07446ffc613787a4c4408746d374f4b557e3696 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan <ram@leastauthority.com> Date: Mon, 13 Oct 2014 21:31:16 +0530 Subject: [PATCH] Distribution.xml file and scripts for building the OSX package. --- misc/build_helpers/osx/Distribution.xml | 45 ++++++++++++++++++++++ misc/build_helpers/osx/scripts/postinstall | 3 ++ 2 files changed, 48 insertions(+) create mode 100644 misc/build_helpers/osx/Distribution.xml create mode 100755 misc/build_helpers/osx/scripts/postinstall 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 -- 2.45.2