1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-03-12 04:07:01 -04:00

macOS: make the .app able to start up

Launching the app in a Terminal window works (by typing 'PySolFC.app/Contents/MacOS/PySolFC')
but clicking in Finder window fails. emulate_shell_environment might fix this
per https://github.com/pyinstaller/pyinstaller/issues/5109#issuecomment-808033464
This commit is contained in:
Juhani Numminen 2021-07-14 11:17:50 +03:00
parent 8f2e47cfd1
commit dd0efc9428

View file

@ -58,6 +58,7 @@ RESOURCES = []
FRAMEWORKS = [SOLVER_LIB_PATH] if SOLVER_LIB_PATH else []
# with argv_emulation=True, the app window is not shown when launched
OPTIONS = dict(argv_emulation=False,
emulate_shell_environment=True,
plist=PLIST,
iconfile=ICON_FILE,
resources=RESOURCES,