Use a separate icon for preview releases

This commit is contained in:
Max Brunsfeld 2022-10-26 11:20:16 -07:00
parent a4a8596a29
commit 0f1b0a4a78
6 changed files with 25 additions and 3 deletions

View file

@ -22,7 +22,17 @@ echo "Compiling cli binary for x86_64-apple-darwin"
cargo build --release --package cli --target x86_64-apple-darwin
echo "Creating application bundle"
(cd crates/zed && cargo bundle --release --target x86_64-apple-darwin)
(
cd crates/zed
channel=$(cat RELEASE_CHANNEL)
cp Cargo.toml Cargo.toml.backup
sed \
-i .backup \
"s/package.metadata.bundle-${channel}/package.metadata.bundle/" \
Cargo.toml
cargo bundle --release --target x86_64-apple-darwin
mv Cargo.toml.backup Cargo.toml
)
echo "Creating fat binaries"
lipo \