From e62d60c84cf65804d803379b73eab153e2bdc08a Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 7 Nov 2024 11:34:27 +0200 Subject: [PATCH] Cleanup Framework directory when re-bundling for macOS (#20342) Release Notes: - N/A --- script/bundle-mac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/bundle-mac b/script/bundle-mac index 7a25881535..06231a22ab 100755 --- a/script/bundle-mac +++ b/script/bundle-mac @@ -225,7 +225,8 @@ function sign_app_binaries() { local architecture=$2 local architecture_dir=$3 echo "Copying WebRTC.framework into the frameworks folder" - mkdir "${app_path}/Contents/Frameworks" + rm -rf "${app_path}/Contents/Frameworks" + mkdir -p "${app_path}/Contents/Frameworks" if [ "$local_arch" = false ]; then cp -R target/${local_target_triple}/${target_dir}/WebRTC.framework "${app_path}/Contents/Frameworks/" else