Clear out bundle directory before creating a new app bundle

This commit is contained in:
Max Brunsfeld 2022-10-26 17:48:29 -07:00
parent 499d947e69
commit 6410fdc474
2 changed files with 1 additions and 1 deletions

View file

@ -121,7 +121,6 @@ jobs:
draft: true draft: true
prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }} prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}
files: target/release/Zed.dmg files: target/release/Zed.dmg
overwrite: true
body: "" body: ""
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -28,6 +28,7 @@ sed \
-i .backup \ -i .backup \
"s/package.metadata.bundle-${channel}/package.metadata.bundle/" \ "s/package.metadata.bundle-${channel}/package.metadata.bundle/" \
Cargo.toml Cargo.toml
rm -rf target/x86_64-apple-darwin/release/bundle
app_path=$(cargo bundle --release --target x86_64-apple-darwin | xargs) app_path=$(cargo bundle --release --target x86_64-apple-darwin | xargs)
mv Cargo.toml.backup Cargo.toml mv Cargo.toml.backup Cargo.toml
popd popd