Preserve symlinks in WebRTC.framework to avoid bundle signing failure
This commit is contained in:
parent
6bdb08ab9c
commit
0ef62fc334
2 changed files with 12 additions and 2 deletions
|
@ -128,9 +128,20 @@ fn swift_package_root() -> PathBuf {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn copy_dir(source: &Path, destination: &Path) {
|
fn copy_dir(source: &Path, destination: &Path) {
|
||||||
|
assert!(
|
||||||
|
Command::new("rm")
|
||||||
|
.arg("-rf")
|
||||||
|
.arg(destination)
|
||||||
|
.status()
|
||||||
|
.unwrap()
|
||||||
|
.success(),
|
||||||
|
"could not remove {:?} before copying",
|
||||||
|
destination
|
||||||
|
);
|
||||||
|
|
||||||
assert!(
|
assert!(
|
||||||
Command::new("cp")
|
Command::new("cp")
|
||||||
.arg("-r")
|
.arg("-R")
|
||||||
.args(&[source, destination])
|
.args(&[source, destination])
|
||||||
.status()
|
.status()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
|
@ -39,7 +39,6 @@ lipo \
|
||||||
echo "Copying WebRTC.framework into the frameworks folder"
|
echo "Copying WebRTC.framework into the frameworks folder"
|
||||||
mkdir target/x86_64-apple-darwin/release/bundle/osx/Zed.app/Contents/Frameworks
|
mkdir target/x86_64-apple-darwin/release/bundle/osx/Zed.app/Contents/Frameworks
|
||||||
cp -R target/x86_64-apple-darwin/release/WebRTC.framework target/x86_64-apple-darwin/release/bundle/osx/Zed.app/Contents/Frameworks/
|
cp -R target/x86_64-apple-darwin/release/WebRTC.framework target/x86_64-apple-darwin/release/bundle/osx/Zed.app/Contents/Frameworks/
|
||||||
rm -rf target/x86_64-apple-darwin/release/bundle/osx/Zed.app/Contents/Frameworks/WebRTC.framework/Versions
|
|
||||||
|
|
||||||
if [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARIZATION_USERNAME && -n $APPLE_NOTARIZATION_PASSWORD ]]; then
|
if [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARIZATION_USERNAME && -n $APPLE_NOTARIZATION_PASSWORD ]]; then
|
||||||
echo "Signing bundle with Apple-issued certificate"
|
echo "Signing bundle with Apple-issued certificate"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue