2013-06-16 03:13:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Quick and dangerous script for building OSX binaries.
|
|
|
|
|
|
|
|
# First, have a recent checkout of the dev version of pyinstaller. Change into
|
|
|
|
# the pyinstaller directory, and then run this script.
|
|
|
|
|
2013-06-16 03:50:08 +00:00
|
|
|
DST=/tmp/osx-mitmproxy
|
|
|
|
MITMPROXY=~/mitmproxy/mitmproxy
|
|
|
|
PYINST_CMD="./pyinstaller.py -F --clean"
|
|
|
|
|
|
|
|
rm -rf $DST
|
|
|
|
mkdir -p $DST
|
2013-06-16 03:13:28 +00:00
|
|
|
rm -rf mitmproxy
|
|
|
|
rm -rf mitmdump
|
|
|
|
|
2013-06-16 03:50:08 +00:00
|
|
|
$PYINST_CMD $MITMPROXY/mitmproxy
|
|
|
|
cp mitmproxy/dist/mitmproxy $DST
|
|
|
|
|
|
|
|
$PYINST_CMD $MITMPROXY/mitmdump
|
|
|
|
cp mitmdump/dist/mitmdump $DST
|
2013-06-16 03:13:28 +00:00
|
|
|
|
2013-06-16 03:50:08 +00:00
|
|
|
cshape $MITMPROXY/doc-src $DST/doc
|