Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Cleanup Framework directory when re-bundling for macOS (#20342)

Kirill Bulatove62d60c84cf6
diff --git a/script/bundle-mac b/script/bundle-mac
index 7a258815359..06231a22abd 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