]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Distribution.xml file and scripts for building the OSX package.
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Mon, 13 Oct 2014 16:01:16 +0000 (21:31 +0530)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 20 Oct 2014 16:52:46 +0000 (17:52 +0100)
misc/build_helpers/osx/Distribution.xml [new file with mode: 0644]
misc/build_helpers/osx/scripts/postinstall [new file with mode: 0755]

diff --git a/misc/build_helpers/osx/Distribution.xml b/misc/build_helpers/osx/Distribution.xml
new file mode 100644 (file)
index 0000000..7662a98
--- /dev/null
@@ -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 (executable)
index 0000000..aefc4fd
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "/Applications/tahoe.app/bin" >> /etc/paths.d/tahoe