diff --git a/src/angle_builder/angle.py b/src/angle_builder/angle.py index aa9bcbb..daf9eee 100644 --- a/src/angle_builder/angle.py +++ b/src/angle_builder/angle.py @@ -307,6 +307,27 @@ def _create_macos_dylibs(self, output_artifact_mode: str) -> list: check=True, ) + # By using install_name_tool, we can change the dylib's id to @rpath/*.dylib + subprocess.run( + [ + "install_name_tool", + "-id", + "@rpath/libEGL.dylib", + libEGL_dylib_path, + ], + check=True, + ) + + subprocess.run( + [ + "install_name_tool", + "-id", + "@rpath/libGLESv2.dylib", + libGLESv2_dylib_path, + ], + check=True, + ) + return [libEGL_dylib_path, libGLESv2_dylib_path] def build(self, output_artifact_mode: str, output_folder: str) -> None: