8926: internal: Drop uncompressed release artifacts and those following the old naming convention r=matklad a=lnicola

Closes #6996

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2021-05-22 18:35:02 +00:00 committed by GitHub
commit bc1ba1549d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ use std::{
use anyhow::Result;
use flate2::{write::GzEncoder, Compression};
use xshell::{cmd, cp, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file};
use xshell::{cmd, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file};
use crate::{date_iso, flags, project_root};
@ -81,24 +81,6 @@ fn dist_server(release_channel: &str) -> Result<()> {
let dst = Path::new("dist").join(format!("rust-analyzer-{}{}", target, suffix));
gzip(&src, &dst.with_extension("gz"))?;
// FIXME: the old names are temporarily kept for client compatibility, but they should be removed
// Remove this block after a couple of releases
match target.as_ref() {
"x86_64-unknown-linux-gnu" => {
cp(&src, "dist/rust-analyzer-linux")?;
gzip(&src, Path::new("dist/rust-analyzer-linux.gz"))?;
}
"x86_64-pc-windows-msvc" => {
cp(&src, "dist/rust-analyzer-windows.exe")?;
gzip(&src, Path::new("dist/rust-analyzer-windows.gz"))?;
}
"x86_64-apple-darwin" => {
cp(&src, "dist/rust-analyzer-mac")?;
gzip(&src, Path::new("dist/rust-analyzer-mac.gz"))?;
}
_ => {}
}
Ok(())
}