mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
move bin into release, update rtool
This commit is contained in:
parent
887ecf8896
commit
f42af90612
@ -79,7 +79,7 @@ setup(
|
|||||||
# Do not use a range operator here: https://bitbucket.org/pypa/setuptools/issues/380
|
# Do not use a range operator here: https://bitbucket.org/pypa/setuptools/issues/380
|
||||||
# Ubuntu Trusty and other still ship with setuptools < 17.1
|
# Ubuntu Trusty and other still ship with setuptools < 17.1
|
||||||
':python_version == "2.7"': [
|
':python_version == "2.7"': [
|
||||||
"enum34>=1.0.4, <1.1",
|
"enum34>=1.0.4, <2",
|
||||||
],
|
],
|
||||||
'dev': [
|
'dev': [
|
||||||
"mock>=1.3.0, <1.4",
|
"mock>=1.3.0, <1.4",
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
|
||||||
ACTIVATE_DIR="$(if [ -f "$DIR/../venv.mitmproxy/bin/activate" ]; then echo 'bin'; else echo 'Scripts'; fi;)"
|
|
||||||
if [ -z "$VIRTUAL_ENV" ] && [ -f "$DIR/../venv.mitmproxy/$ACTIVATE_DIR/activate" ]; then
|
|
||||||
echo "Activating mitmproxy virtualenv..."
|
|
||||||
source "$DIR/../venv.mitmproxy/$ACTIVATE_DIR/activate"
|
|
||||||
fi
|
|
9
release/.gitignore
vendored
9
release/.gitignore
vendored
@ -1,9 +0,0 @@
|
|||||||
.DS_Store
|
|
||||||
MANIFEST
|
|
||||||
*.py[cdo]
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
|
|
||||||
/build
|
|
||||||
/dist
|
|
||||||
/mitmproxy_rtool.egg-info
|
|
@ -242,7 +242,7 @@ def bdist(ctx, use_existing_wheels, pyinstaller_version):
|
|||||||
if conf["tools"]:
|
if conf["tools"]:
|
||||||
with Archive(join(DIST_DIR, archive_name(p))) as archive:
|
with Archive(join(DIST_DIR, archive_name(p))) as archive:
|
||||||
for tool in conf["tools"]:
|
for tool in conf["tools"]:
|
||||||
spec = join(RELEASE_DIR, "%s.spec" % tool)
|
spec = join(RELEASE_DIR, "specs/%s.spec" % tool)
|
||||||
print("Building %s binary..." % tool)
|
print("Building %s binary..." % tool)
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
[
|
[
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
|
||||||
a = Analysis(['../mitmproxy/mitmdump'],
|
a = Analysis(['mitmdump'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
datas=collect_data_files("mitmproxy.onboarding"),
|
datas=collect_data_files("mitmproxy.onboarding"),
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
0
mitmproxy/bin/mitmproxy → release/specs/mitmproxy
Executable file → Normal file
0
mitmproxy/bin/mitmproxy → release/specs/mitmproxy
Executable file → Normal file
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
|
||||||
a = Analysis(['../mitmproxy/mitmproxy'],
|
a = Analysis(['mitmproxy'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
datas=collect_data_files("mitmproxy.onboarding"),
|
datas=collect_data_files("mitmproxy.onboarding"),
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
0
mitmproxy/bin/mitmweb → release/specs/mitmweb
Executable file → Normal file
0
mitmproxy/bin/mitmweb → release/specs/mitmweb
Executable file → Normal file
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
|
||||||
a = Analysis(['../mitmproxy/mitmweb'],
|
a = Analysis(['mitmweb'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
datas=collect_data_files("mitmproxy"),
|
datas=collect_data_files("mitmproxy"),
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
0
pathod/bin/pathoc → release/specs/pathoc
Executable file → Normal file
0
pathod/bin/pathoc → release/specs/pathoc
Executable file → Normal file
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
|
||||||
a = Analysis(['../pathod/pathoc'],
|
a = Analysis(['pathoc'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
datas=None,
|
datas=None,
|
||||||
hiddenimports=['_cffi_backend'],
|
hiddenimports=['_cffi_backend'],
|
0
pathod/bin/pathod → release/specs/pathod
Executable file → Normal file
0
pathod/bin/pathod → release/specs/pathod
Executable file → Normal file
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
|
||||||
a = Analysis(['../pathod/pathod'],
|
a = Analysis(['pathod'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
datas=collect_data_files("libpathod"),
|
datas=collect_data_files("pathod"),
|
||||||
hiddenimports=['_cffi_backend'],
|
hiddenimports=['_cffi_backend'],
|
||||||
hookspath=None,
|
hookspath=None,
|
||||||
runtime_hooks=None,
|
runtime_hooks=None,
|
Loading…
Reference in New Issue
Block a user