linux preview… (#11286)

Release Notes:

- (preview only) You can now install an (alpha) preview build on linux
This commit is contained in:
Conrad Irwin 2024-05-01 21:51:38 -06:00 committed by GitHub
parent b487f2ce6f
commit d8ca15372c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 11 deletions

View file

@ -52,7 +52,7 @@ zed_dir="${temp_dir}/zed$suffix.app"
# Binary
mkdir -p "${zed_dir}/bin"
cp "target/${target_triple}/release/Zed" "${zed_dir}/zed"
cp "target/${target_triple}/release/Zed" "${zed_dir}/bin/zed"
# Icons
mkdir -p "${zed_dir}/share/icons/hicolor/512x512/apps"
@ -62,7 +62,7 @@ cp "crates/zed/resources/app-icon$suffix@2x.png" "${zed_dir}/share/icons/hicolor
# .desktop
mkdir -p "${zed_dir}/share/applications"
cp "crates/zed/resources/zed$suffix.desktop" "${zed_dir}/share/applications/zed$suffix.desktop"
cp "crates/zed/resources/zed.desktop" "${zed_dir}/share/applications/zed$suffix.desktop"
if [[ "$channel" == "preview" ]]; then
sed -i "s|Name=Zed|Name=Zed Preview|g" "${zed_dir}/share/applications/zed$suffix.desktop"
elif [[ "$channel" == "nightly" ]]; then
@ -84,4 +84,4 @@ else
fi
rm -rf "${archive}"
tar -czvf $archive -C ${temp_dir} ${zed_dir}
tar -czvf $archive -C ${temp_dir} "zed$suffix.app"