mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
Make ready for pyinstaller.
This commit is contained in:
parent
52b56e23b2
commit
9e94fdc6db
3
mitmdump
3
mitmdump
@ -16,7 +16,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys, signal
|
||||
from libmproxy import proxy, dump, cmdline, version
|
||||
# The unneccesary console import here is to work around a bug in pyinstaller
|
||||
from libmproxy import proxy, dump, cmdline, version, console
|
||||
import argparse
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
20
release/pyinstaller-mitmdump.spec
Normal file
20
release/pyinstaller-mitmdump.spec
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- 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 )
|
16
release/pyinstaller-mitmproxy.spec
Normal file
16
release/pyinstaller-mitmproxy.spec
Normal file
@ -0,0 +1,16 @@
|
||||
# -*- 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 )
|
Loading…
Reference in New Issue
Block a user