From 7ff972f0ce31343aa6e4809c8b8ac8aa3b33f2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sat, 22 May 2021 20:23:03 +0300 Subject: Drop uncompressed release artifacts and those following the old naming convention --- xtask/src/dist.rs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index b6aa2f52a..abfd765cc 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -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}; @@ -80,24 +80,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(()) } -- cgit v1.2.3