ninfs/setup-cxfreeze.py
Ian Burgwin fea17342be
setup-cxfreeze: use fixed version of 2.0
A version like "2.0a6" was causing issues with newer versions of
cx-Freeze due to how it parses the version.
2022-01-26 20:23:37 -08:00

48 lines
1.2 KiB
Python

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
)