So I have a bundle RPG.app
In Info.plist CFBundleExecutable is easyrpg-setup
RPG.app/Contents/MacOS/easyrpg-setup is
#!/bin/bash
"${0%/*}/easyrpg-player" --window --project-path "${0%/*}/game" --save-path "/$USER/Library/Application Support/Yume Nikki"
It opens a window, puts the game name in the title bar, and crashes after a few seconds no matter which game I put in RPG.app/Contents/MacOS/game
Crash log: https://pastebin.com/raw/7mhCD9N2