-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup-cxfreeze.py
47 lines (38 loc) · 1.23 KB
/
setup-cxfreeze.py
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
import sys
from cx_Freeze import setup, Executable
from ninfs import mountinfo
mount_module_paths = [f'ninfs.mount.{x}' for x in mountinfo.types.keys()]
build_exe_options = {
'includes': [
'ninfs',
'ninfs.gui',
'ninfs.mountinfo',
'ninfs.main',
'ninfs.reg_shell',
'ninfs.fmt_detect',
'ninfs.fuse',
] + mount_module_paths,
}
build_msi_options = {
'upgrade_code': '{4BC1D604-0C12-428A-AA22-7BB673EC8266}',
'install_icon': 'ninfs/gui/data/windows.ico'
}
executables = [
Executable('ninfs/_frozen_main.py',
target_name='ninfs',
icon='ninfs/gui/data/windows.ico')
]
if sys.platform == 'win32':
executables.append(Executable('ninfs/_frozen_main.py',
base='Win32GUI',
target_name='ninfsw',
icon='ninfs/gui/data/windows.ico'))
executables.append(Executable('ninfs/winpathmodify.py',
target_name='winpathmodify'))
setup(
name='ninfs',
version='2.0',
description='FUSE filesystem Python scripts for Nintendo console files',
options={'build_exe': build_exe_options},
executables=executables
)