forked from uyjco0/flashproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflashproxy-client.spec
More file actions
26 lines (20 loc) · 903 Bytes
/
flashproxy-client.spec
File metadata and controls
26 lines (20 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# PyInstaller spec file for the flash proxy client programs.
# Modelled after example at http://www.pyinstaller.org/export/v2.0/project/doc/Manual.html?format=raw#merge.
# Top-level directory.
tmpdir = os.environ['PYINSTALLER_TMPDIR']
scripts = ('flashproxy-client', 'flashproxy-reg-email', 'flashproxy-reg-http')
# M2Crypto is a hidden import so that PyInstaller will print an error if the module is missing.
analyses = [(Analysis([script], hiddenimports=['M2Crypto']),
script,
os.path.join(tmpdir, 'build', script + '.exe')) for script in scripts]
MERGE(*analyses)
tocs = []
for a, _, exename in analyses:
pyz = PYZ(a.pure)
tocs.append(EXE(pyz,
a.scripts,
exclude_binaries=1,
console=True,
name=exename))
tocs.append(a.binaries)
COLLECT(*tocs, name=os.path.join(tmpdir, 'dist'))