Use Resources path when building ecode.app. Should fix signing.

This commit is contained in:
Martín Lucas Golini
2025-10-08 22:21:59 -03:00
parent 97d6665d3b
commit 2d700f9e36
3 changed files with 70 additions and 60 deletions

View File

@@ -3760,6 +3760,12 @@ void App::init( InitParameters& params ) {
mResPath += "assets";
FileSystem::dirAddSlashAtEnd( mResPath );
#if EE_PLATFORM == EE_PLATFORM_MACOS
if ( !FileSystem::fileExists( mResPath ) ) {
mResPath = Sys::getProcessPath() + "/../Resources/assets/";
}
#endif
bool firstRun = loadConfig( params.logLevel, currentDisplay->getSize(), params.prematureExit,
params.stdOutLogs, params.disableFileLogs );