forked from Eve-PySpy/PySpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__main__.spec
68 lines (61 loc) · 1.56 KB
/
__main__.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- mode: python -*-
'''Cross-platform (MacOSX and Windows 10) Spec file for pyinstaller.
Be sure to not use python 3.7 until pyinstaller supports it.'''
# cSpell Checker - Correct Words****************************************
# // cSpell:words pyinstaller, pyspy, posix, icns, getcwd, datas,
# // cSpell:words tkinter, noconsole
# **********************************************************************
import os
if os.name == "nt":
ICON_FILE = os.path.join("assets", "pyspy.ico")
elif os.name == "posix":
ICON_FILE = os.path.join("assets", "pyspy.png")
MAC_ICON = os.path.join("assets", "pyspy.icns")
ABOUT_ICON = os.path.join("assets", "pyspy_mid.png")
block_cipher = None
a = Analysis(
["__main__.py"],
pathex=[os.getcwd()],
binaries=[],
datas=[
(ICON_FILE, "."),
(ABOUT_ICON, "."),
("VERSION", "."),
("LICENSE.txt", "."),
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=["Tkinter"],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher
)
pyz = PYZ(
a.pure,
a.zipped_data,
cipher=block_cipher
)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name="PySpy",
icon=ICON_FILE,
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
noconsole=True,
onefile=True,
windowed=True
)
app = BUNDLE(
exe,
name="PySpy.app",
icon=MAC_ICON,
bundle_identifier=None
)