Fix missing path separator in prepare_resources-mac.py#599
Conversation
Use os.path.join() instead of string concatenation to properly join TARGET_BUILD_DIR and UNLOCALIZED_RESOURCES_FOLDER_PATH. Without this fix, resources were copied to an invalid path (e.g. '/Users/name/ApplicationsApp.app' instead of '/Users/name/Applications/App.app'), causing the app to crash on startup due to missing UI resources.
|
Nice. Two questions if you know:
|
|
Hi @sdatkinson,
Yes, that might be the issue. Do you have any bug reports/stack traces? I don't think it should impact AU and Logic specifically though, and I'm an Ableton user myself so cannot really test it
Yes, I think we could add something this to At least it works locally on my machine (fails before fix, and passes after). We could also verify the path directly in the Btw, let me know if you have any good "first issues" or smaller projects you want me to pick up. Would love to contribute more to this fantastic project :) |
|
@sdatkinson @adamnsch could you elaborate in which context this bug happens exactly? I tried to read the code but got a bit lost. Does it concern only the standalone app, or does the au/vst plugin crash too because of that? Im about to switch to MacOS and I will mainly use NAM as a plugin in Ableton, am I concerned by this if I install v0.7.13? And if so is there a quickfix while waiting for a new release? Thx in advance. |
|
@adamnsch cool. Happy to take a PR for that test. Hi @jlephay. I haven't personally observed the issue that this claims to fix. 0.7.13, which doesn't include this fix, will probably be fine. I wouldn't be concerned to install 0.7.13 and see. If it doesn't work, then you can always wait for next version which will include this change, build it yourself in the meantime, or use another NAM-supporting plugin. Plenty of options :) |
|
@sdatkinson I just installed the v0.7.13 VST3 on a fresh MacOS tahoe and I can confirm that there's no issue. Thx for your reply. |
Thanks for making a Pull Request!
Please fill out this template so that you can be sure that your PR does everything it needs to be accepted.
Description
Fixes a bug in the macOS resource copying script where
TARGET_BUILD_DIRandUNLOCALIZED_RESOURCES_FOLDER_PATHwere concatenated without a path separator, causing resources to be copied to an invalid path.Before:
/Users/name/ApplicationsApp.app/Contents/Resources(missing slash)After:
/Users/name/Applications/App.app/Contents/Resources(correct)This caused the standalone app to crash on startup with a segmentation fault when trying to render UI elements with missing bitmaps.
PR Checklist (none are applicable for this change)
format.bash?Unserialization.cpp.)