mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-29 08:10:37 +00:00
Minor improvements to osx binary build process
- Add --shortversion on tools to make packaging easier - Automate tarfile generation
This commit is contained in:
parent
ab06c2436b
commit
0cc8c44c22
@ -194,6 +194,11 @@ def common_options(parser):
|
||||
action= 'version',
|
||||
version= "%(prog)s" + " " + version.VERSION
|
||||
)
|
||||
parser.add_argument(
|
||||
'--shortversion',
|
||||
action= 'version',
|
||||
version= version.VERSION
|
||||
)
|
||||
parser.add_argument(
|
||||
"--anticache",
|
||||
action="store_true", dest="anticache", default=False,
|
||||
@ -451,9 +456,9 @@ def common_options(parser):
|
||||
"--replay-ignore-payload-param",
|
||||
action="append", dest="replay_ignore_payload_params", type=str,
|
||||
help="""
|
||||
Request's payload parameters (application/x-www-form-urlencoded) to
|
||||
be ignored while searching for a saved flow to replay.
|
||||
Can be passed multiple times.
|
||||
Request's payload parameters (application/x-www-form-urlencoded) to
|
||||
be ignored while searching for a saved flow to replay.
|
||||
Can be passed multiple times.
|
||||
"""
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user