From 268a0fe99e538a6d5b915c25a2473e1e21fa5da8 Mon Sep 17 00:00:00 2001 From: Adam Schill Collberg Date: Tue, 9 Dec 2025 11:10:05 +0100 Subject: [PATCH] Fix missing path separator in prepare_resources-mac.py 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. --- NeuralAmpModeler/scripts/prepare_resources-mac.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NeuralAmpModeler/scripts/prepare_resources-mac.py b/NeuralAmpModeler/scripts/prepare_resources-mac.py index 23c97c139..d6fc7f9e2 100755 --- a/NeuralAmpModeler/scripts/prepare_resources-mac.py +++ b/NeuralAmpModeler/scripts/prepare_resources-mac.py @@ -31,9 +31,9 @@ def main(): + "/Resources" ) else: - dst = ( - os.environ["TARGET_BUILD_DIR"] - + os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"] + dst = os.path.join( + os.environ["TARGET_BUILD_DIR"], + os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"] ) if os.path.exists(dst) == False: