-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsshpt.spec
28 lines (25 loc) · 929 Bytes
/
sshpt.spec
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
27
28
# -*- mode: python -*-
import os
import platform
a = Analysis(['sshpt/__main__.py'],
pathex=['./sshpt'],
hiddenimports=['Crypto.Cipher.ARC4','Crypto.Hash.SHA256','Crypto.Random','Crypto.PublicKey.RSA','Crypto.Signature.PKCS1_v1_5', 'pkg_resources'],
hookspath=None,
runtime_hooks=None)
if platform.system().find("Windows")>= 0:
a.datas = [i for i in a.datas if i[0].find('Include') < 0]
pyz = PYZ(a.pure)
#a.datas = filter(lambda d: 'pyconfig' not in d[0], a.datas)
exe = EXE(pyz,
a.scripts,
a.binaries + [('msvcr100.dll', os.environ['WINDIR'] + '\system32\msvcr100.dll', 'BINARY')],
a.zipfiles,
a.datas,
name='sshpt.exe',
debug=False,
strip=None,
upx=False,
console=True,
#icon='icon/sshpt.ico'
)
app = BUNDLE(exe, name=os.path.join('dist', 'sshpt.exe.app'))