I really appreciate this project and wanted to add a contribution that I had made to get this to work with MacOS .app applications. When building .app applications on MacOS, the resources directory is in the .app/Contents directory, and the executable is in the .app/MacOS directory. I made some updates to the main run function and to the preload script to account for these. I haven't tested this with .pkg packages (these might need to be handled differently), but it works for .app applications.
I really appreciate this project and wanted to add a contribution that I had made to get this to work with MacOS .app applications. When building .app applications on MacOS, the resources directory is in the.app/Contents directory, and the executable is in the .app/MacOS directory. I made some updates to the main run function and to the preload script to account for these. I haven't tested this with .pkg packages (these might need to be handled differently), but it works for .app applications.