Repository navigation
Expand file tree
/
Copy pathsetup-mac.py
More file actions
64 lines (60 loc) · 2.13 KB
/
Copy pathsetup-mac.py
File metadata and controls
64 lines (60 loc) · 2.13 KB
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
import os
import sys
from setuptools import setup
# Add src directory to Python path so py2app can find whacked4 module
sys.path.insert(0, 'src')
APP = ['src/main.py']
DATA_FILES = [
'res',
'cfg',
'docs',
'LICENSE',
'README.md'
]
OPTIONS = {
'argv_emulation': False,
'iconfile': 'res/icon-hatchet.icns',
'plist': {
'CFBundleName': os.environ.get('app_title', 'WhackEd4'),
'CFBundleDisplayName': os.environ.get('app_title', 'WhackEd4'),
'CFBundleIdentifier': f'com.teamhellspawn.{os.environ.get("app_name_lower", "whacked4")}',
'CFBundleVersion': os.environ.get('app_version_value', '1.3.3'),
'CFBundleShortVersionString': os.environ.get('app_version_value', '1.3.3'),
'CFBundleInfoDictionaryVersion': '6.0',
'CFBundlePackageType': 'APPL',
'NSHighResolutionCapable': True,
'LSMinimumSystemVersion': '10.12',
'NSHumanReadableCopyright': '© 2025 Dennis Meuwissen',
'CFBundleDocumentTypes': [
{
'CFBundleTypeName': 'DeHackEd Patch',
'CFBundleTypeExtensions': ['deh', 'bex'],
'CFBundleTypeRole': 'Editor',
'CFBundleTypeIconFile': 'icon-hatchet.icns',
'LSHandlerRank': 'Owner'
}
],
},
'packages': ['wx', 'sounddevice', 'platformdirs'],
'includes': [],
'excludes': [
'wx.tools', 'wx.py', 'wx.lib.agw', 'wx.lib.plot', 'wx.lib.floatcanvas',
'wx.lib.ogl', 'wx.lib.editor', 'wx.lib.mixins', 'wx.demo',
'wx.tools.Editra', 'wx.tools.XRCed', 'wx.lib.inspection',
'tkinter', 'turtle', 'test', 'unittest', 'doctest',
'pydoc', 'xml.etree', 'xml.sax', 'xml.dom'
],
'site_packages': True,
'strip': True,
'optimize': 2,
}
setup(
app=APP,
name=os.environ.get('app_title', 'WhackEd4'),
version=os.environ.get('app_version_value', '1.3.3'),
description=os.environ.get('app_description', 'A DeHackEd editor for macOS'),
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
install_requires=['sounddevice', 'wxPython', 'platformdirs']
)