mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Ensure only the just-built app bundle is included in the DMG
This commit is contained in:
parent
aa9ccf3411
commit
df708465d1
1 changed files with 5 additions and 3 deletions
|
@ -28,10 +28,10 @@ sed \
|
|||
-i .backup \
|
||||
"s/package.metadata.bundle-${channel}/package.metadata.bundle/" \
|
||||
Cargo.toml
|
||||
rm -rf target/x86_64-apple-darwin/release/bundle
|
||||
app_path=$(cargo bundle --release --target x86_64-apple-darwin | xargs)
|
||||
mv Cargo.toml.backup Cargo.toml
|
||||
popd
|
||||
echo "Bundled ${app_path}"
|
||||
|
||||
echo "Creating fat binaries"
|
||||
lipo \
|
||||
|
@ -67,8 +67,10 @@ else
|
|||
fi
|
||||
|
||||
echo "Creating DMG"
|
||||
mkdir -p target/release
|
||||
hdiutil create -volname Zed -srcfolder target/x86_64-apple-darwin/release/bundle/osx -ov -format UDZO target/release/Zed.dmg
|
||||
mkdir -p target/release/dmg
|
||||
rm -rf target/release/dmg/*
|
||||
mv "${app_path}" target/release/dmg/
|
||||
hdiutil create -volname Zed -srcfolder target/release/dmg -ov -format UDZO target/release/Zed.dmg
|
||||
|
||||
if [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARIZATION_USERNAME && -n $APPLE_NOTARIZATION_PASSWORD ]]; then
|
||||
echo "Notarizing DMG with Apple"
|
||||
|
|
Loading…
Reference in a new issue