forked from WhiteMagic/JoystickGremlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
joystick_gremlin.spec
88 lines (80 loc) · 2.08 KB
/
joystick_gremlin.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- mode: python -*-
import os
block_cipher = None
# Properly enumerate all files required for the action_plugins, and
# container_plugins, exporter_plugins, and importer_plugins systems
action_plugins_files = []
for root, _, files in os.walk("action_plugins"):
for fname in files:
if fname.endswith(".pyc"):
continue
action_plugins_files.append((os.path.join(root, fname), root))
container_plugins_files = []
for root, _, files in os.walk("container_plugins"):
for fname in files:
if fname.endswith(".pyc"):
continue
container_plugins_files.append((os.path.join(root, fname), root))
exporter_plugins_files = []
for root, _, files in os.walk("exporter_plugins"):
for fname in files:
if fname.endswith(".pyc"):
continue
exporter_plugins_files.append((os.path.join(root, fname), root))
importer_plugins_files = []
for root, _, files in os.walk("importer_plugins"):
for fname in files:
if fname.endswith(".pyc"):
continue
importer_plugins_files.append((os.path.join(root, fname), root))
added_files = [
("about", "about"),
("doc", "doc"),
("gfx", "gfx")
]
added_files.extend(action_plugins_files)
added_files.extend(container_plugins_files)
added_files.extend(exporter_plugins_files)
added_files.extend(importer_plugins_files)
added_binaries = [
("vjoy/vJoyInterface.dll", "."),
("dill/dill.dll", "."),
]
a = Analysis(
["joystick_gremlin.py"],
pathex=[],
binaries=added_binaries,
datas=added_files,
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher
)
pyz = PYZ(
a.pure,
a.zipped_data,
cipher=block_cipher
)
exe = EXE(
pyz,
a.scripts,
exclude_binaries=True,
name="joystick_gremlin",
debug=False,
strip=None,
upx=True,
console=False,
icon="gfx\\icon.ico"
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
name="joystick_gremlin"
)