Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
./notarize.sh {myapp} sign_app
{myapp}.app: bundle format unrecognized, invalid, or unsuitable
In subcomponent: /mac-notarization-master/{myapp}/{myapp}.app/Contents/MacOS/lib/python2.7
The problem goes away as soon as I delete the python2.7 folder, which, of course, breaks the app.
Is there something in the python2.7 folder that renders signing impossible?
Last edited by unregistered on Wed Feb 16, 2022 12:35 pm, edited 1 time in total.
According to this post, codesign doesn't want folders with periods in the MacOS folder, which Renpy has ("python2.7"). This is the same issue, I guess:
I can confirm that the workaround from Stack Overflow works for the problematic directory structure of Renpy builds when codesigning isn't working:
- Move the folders within the .App Application folder from ./MacOS to ./Resources and symlink them back to ./MacOS
- This keeps the Renpy App working, but having a compatible directory structure for Apple's codesigning.
- To symlink, use the command line "ln -s {sourcedir} {targetdir}
Probably, Renpy should be updated to reflect that with future MacOS builds to avoid further codesigning issues because of invalid periods in directories.
While I'm on Renpy 7.4.11 now, the build in question was compiled with 7.4.4.1439. So that might be it! Sorry for that and thanks for taking a look! My bad!
Are there any risks using the symlink workaround or should I recompile everything with the newest version just to be sure? I'm a little worried because the product has now been tested on 7.4.4. extensively.