mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Update for latest master of PyInstaller
This commit is contained in:
parent
a8c074054a
commit
dfc1b39164
@ -1,14 +1,12 @@
|
||||
# -*- mode: python -*-
|
||||
|
||||
from glob import glob
|
||||
block_cipher = None
|
||||
|
||||
a = Analysis(['./mitmdump'],
|
||||
hiddenimports=[],
|
||||
hookspath=None,
|
||||
runtime_hooks=None,
|
||||
excludes=None,
|
||||
cipher=block_cipher,
|
||||
)
|
||||
a.datas = Tree(
|
||||
"./libmproxy/onboarding/templates",
|
||||
@ -18,8 +16,7 @@ a.datas += Tree(
|
||||
"./libmproxy/onboarding/static",
|
||||
prefix="libmproxy/onboarding/static"
|
||||
)
|
||||
pyz = PYZ(a.pure,
|
||||
cipher=block_cipher)
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
|
@ -1,14 +1,12 @@
|
||||
# -*- mode: python -*-
|
||||
|
||||
from glob import glob
|
||||
block_cipher = None
|
||||
|
||||
a = Analysis(['./mitmproxy'],
|
||||
hiddenimports=[],
|
||||
hookspath=None,
|
||||
runtime_hooks=None,
|
||||
excludes=None,
|
||||
cipher=block_cipher,
|
||||
)
|
||||
a.datas = Tree(
|
||||
"./libmproxy/onboarding/templates",
|
||||
@ -18,8 +16,7 @@ a.datas += Tree(
|
||||
"./libmproxy/onboarding/static",
|
||||
prefix="libmproxy/onboarding/static"
|
||||
)
|
||||
pyz = PYZ(a.pure,
|
||||
cipher=block_cipher)
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
|
@ -1,14 +1,12 @@
|
||||
# -*- mode: python -*-
|
||||
|
||||
from glob import glob
|
||||
block_cipher = None
|
||||
|
||||
a = Analysis(['./mitmweb'],
|
||||
hiddenimports=[],
|
||||
hookspath=None,
|
||||
runtime_hooks=None,
|
||||
excludes=None,
|
||||
cipher=block_cipher,
|
||||
)
|
||||
a.datas = Tree(
|
||||
"./libmproxy/onboarding/templates",
|
||||
@ -26,8 +24,7 @@ a.datas += Tree(
|
||||
"./libmproxy/web/static",
|
||||
prefix="libmproxy/web/static"
|
||||
)
|
||||
pyz = PYZ(a.pure,
|
||||
cipher=block_cipher)
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
|
@ -26,17 +26,22 @@ fi
|
||||
|
||||
TMPDIR=./tmp
|
||||
PYINST_CMD=$1" -F --clean"
|
||||
CACHE="~/Library/Application Support/pyinstaller"
|
||||
|
||||
rm -f dist/*
|
||||
rm -rf $TMPDIR
|
||||
rm -rf $CACHE
|
||||
|
||||
$PYINST_CMD ./release/mitmdump.spec
|
||||
echo "Running mitmdump..."
|
||||
./dist/mitmdump --version || exit 1
|
||||
|
||||
$PYINST_CMD ./release/mitmproxy.spec
|
||||
echo "Running mitmproxy..."
|
||||
./dist/mitmproxy --version || exit 1
|
||||
|
||||
$PYINST_CMD ./release/mitmweb.spec
|
||||
echo "Running mitmweb..."
|
||||
./dist/mitmweb --version || exit 1
|
||||
|
||||
DST=osx-mitmproxy-`./dist/mitmdump --shortversion 2>&1`
|
||||
|
Loading…
Reference in New Issue
Block a user