aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-12-28 15:07:44 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-12-28 15:07:44 +1300
commit0cc8c44c22304a92425c5eccdda455919a35c221 (patch)
tree11f371aa422fcb5fbb4b6fc6ce561b64ad5d0f01 /release
parentab06c2436be23c9bfbf3af924f0117ecdb6724b4 (diff)
downloadmitmproxy-0cc8c44c22304a92425c5eccdda455919a35c221.tar.gz
mitmproxy-0cc8c44c22304a92425c5eccdda455919a35c221.tar.bz2
mitmproxy-0cc8c44c22304a92425c5eccdda455919a35c221.zip
Minor improvements to osx binary build process
- Add --shortversion on tools to make packaging easier - Automate tarfile generation
Diffstat (limited to 'release')
-rwxr-xr-xrelease/osx-binaries13
-rw-r--r--release/release-checklist1
2 files changed, 11 insertions, 3 deletions
diff --git a/release/osx-binaries b/release/osx-binaries
index 9945e471..8d37d74b 100755
--- a/release/osx-binaries
+++ b/release/osx-binaries
@@ -13,19 +13,28 @@
# To run, first install netlib and mitmproxy, then change into the pyinstaller
# directory, and then run this script.
-DST=/tmp/osx-mitmproxy
+TMPDIR=/tmp
+DST=$TMPDIR/osx-mitmproxy
MITMPROXY=~/mitmproxy/mitmproxy
PYINST_CMD="./pyinstaller.py -F --clean"
-rm -rf $DST
+rm -rf $TMPDIR/osx-mitmproxy*
mkdir -p $DST
rm -rf mitmproxy
rm -rf mitmdump
$PYINST_CMD $MITMPROXY/mitmproxy
+$MITMPROXY/mitmproxy --version || exit 1
cp mitmproxy/dist/mitmproxy $DST
$PYINST_CMD $MITMPROXY/mitmdump
+$MITMPROXY/mitmdump --version || exit 1
cp mitmdump/dist/mitmdump $DST
cshape $MITMPROXY/doc-src $DST/doc
+
+VBASE=osx-mitmproxy-`$MITMPROXY/mitmdump --shortversion 2>&1`
+mv $DST $TMPDIR/$VBASE
+TGZDST=$TMPDIR/$VBASE.tgz
+cd $TMPDIR
+tar -czvf $VBASE.tgz $VBASE
diff --git a/release/release-checklist b/release/release-checklist
index 31a1a48f..f3abaf6a 100644
--- a/release/release-checklist
+++ b/release/release-checklist
@@ -31,7 +31,6 @@
python ./setup.py sdist
mv ./dist/FILE ~/mitmproxy/www.mitmproxy.org/src/download
-
- Adjust links on www.mitmproxy.org
- Upload to pypi for each project: