aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
Diffstat (limited to 'release')
-rwxr-xr-xrelease/osx-binaries30
-rw-r--r--release/pyinstaller-mitmdump.spec20
-rw-r--r--release/pyinstaller-mitmproxy.spec16
3 files changed, 30 insertions, 36 deletions
diff --git a/release/osx-binaries b/release/osx-binaries
new file mode 100755
index 00000000..4be85800
--- /dev/null
+++ b/release/osx-binaries
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# Quick and dangerous script for building OSX binaries.
+
+# A few quirks to note, which should be re-checked every release:
+# - We require the latest development version of PyInstaller.
+
+# - PyInstaller has trouble detecting the zope.interfaces package. This is
+# required by Twisted, which for mysterious reasons is required by Urwid. The
+# answer is to touch the __init__.py file in the zope directory. On my system:
+# touch /Library/Python/2.7/site-packages/zope/__init__.py
+
+# To run, change into the pyinstaller directory, and then run this script.
+
+DST=/tmp/osx-mitmproxy
+MITMPROXY=~/mitmproxy/mitmproxy
+PYINST_CMD="./pyinstaller.py -F --clean"
+
+rm -rf $DST
+mkdir -p $DST
+rm -rf mitmproxy
+rm -rf mitmdump
+
+$PYINST_CMD $MITMPROXY/mitmproxy
+cp mitmproxy/dist/mitmproxy $DST
+
+$PYINST_CMD $MITMPROXY/mitmdump
+cp mitmdump/dist/mitmdump $DST
+
+cshape $MITMPROXY/doc-src $DST/doc
diff --git a/release/pyinstaller-mitmdump.spec b/release/pyinstaller-mitmdump.spec
deleted file mode 100644
index a1a9b937..00000000
--- a/release/pyinstaller-mitmdump.spec
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- mode: python -*-
-
-# Copy into the pyinstaller directory
-# ./pyinstaller.py --clean -F ./pyinstaller-mitmdump.spec
-
-a = Analysis(['/Users/aldo/git/public/mitmproxy/mitmdump'],
- hiddenimports=["pyamf"],
- hookspath=None,
- runtime_hooks=None)
-pyz = PYZ(a.pure)
-exe = EXE(pyz,
- a.scripts,
- a.binaries,
- a.zipfiles,
- a.datas,
- name='mitmdump',
- debug=False,
- strip=None,
- upx=True,
- console=True )
diff --git a/release/pyinstaller-mitmproxy.spec b/release/pyinstaller-mitmproxy.spec
deleted file mode 100644
index 8de6d583..00000000
--- a/release/pyinstaller-mitmproxy.spec
+++ /dev/null
@@ -1,16 +0,0 @@
-# -*- mode: python -*-
-a = Analysis(['/Users/aldo/git/public/mitmproxy/mitmproxy'],
- hiddenimports=["pyamf"],
- hookspath=None,
- runtime_hooks=None)
-pyz = PYZ(a.pure)
-exe = EXE(pyz,
- a.scripts,
- a.binaries,
- a.zipfiles,
- a.datas,
- name='mitmproxy',
- debug=False,
- strip=None,
- upx=True,
- console=True )