Skip to content

Commit 3771e29

Browse files
committed
Fix macOS executable script
1 parent 9a6fa5d commit 3771e29

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build-macos.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ def tree(src):
1717

1818
ENTRY_POINT = ['src/index.py']
1919

20-
DATA_FILES = tree('dist')
20+
DATA_FILES = tree('gui')
2121
OPTIONS = {
2222
'argv_emulation': False,
23-
'strip': True,
23+
'strip': False,
2424
'iconfile': 'src/assets/logo.icns',
25-
'includes': ['WebKit', 'Foundation', 'webview', 'pkg_resources.py2_warn']
25+
'packages': ['WebKit', 'Foundation', 'webview'],
26+
'plist': {
27+
'NSRequiresAquaSystemAppearance': False
28+
},
29+
'resources': DATA_FILES
2630
}
2731

2832
setup(
2933
app=ENTRY_POINT,
30-
data_files=DATA_FILES,
3134
options={'py2app': OPTIONS},
3235
setup_requires=['py2app'],
3336
)

0 commit comments

Comments
 (0)