aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-05-22 18:23:03 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-05-22 18:26:29 +0100
commit7ff972f0ce31343aa6e4809c8b8ac8aa3b33f2e5 (patch)
treef786a9fa51b32b18229d388c0c3cc79a3b4ef721 /xtask
parent5b6fa95699423c14c51f13a9632c2db6163c82e4 (diff)
Drop uncompressed release artifacts and those following the old naming convention
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/dist.rs20
1 files changed, 1 insertions, 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::{
7 7
8use anyhow::Result; 8use anyhow::Result;
9use flate2::{write::GzEncoder, Compression}; 9use flate2::{write::GzEncoder, Compression};
10use xshell::{cmd, cp, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file}; 10use xshell::{cmd, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file};
11 11
12use crate::{date_iso, flags, project_root}; 12use crate::{date_iso, flags, project_root};
13 13
@@ -80,24 +80,6 @@ fn dist_server(release_channel: &str) -> Result<()> {
80 let dst = Path::new("dist").join(format!("rust-analyzer-{}{}", target, suffix)); 80 let dst = Path::new("dist").join(format!("rust-analyzer-{}{}", target, suffix));
81 gzip(&src, &dst.with_extension("gz"))?; 81 gzip(&src, &dst.with_extension("gz"))?;
82 82
83 // FIXME: the old names are temporarily kept for client compatibility, but they should be removed
84 // Remove this block after a couple of releases
85 match target.as_ref() {
86 "x86_64-unknown-linux-gnu" => {
87 cp(&src, "dist/rust-analyzer-linux")?;
88 gzip(&src, Path::new("dist/rust-analyzer-linux.gz"))?;
89 }
90 "x86_64-pc-windows-msvc" => {
91 cp(&src, "dist/rust-analyzer-windows.exe")?;
92 gzip(&src, Path::new("dist/rust-analyzer-windows.gz"))?;
93 }
94 "x86_64-apple-darwin" => {
95 cp(&src, "dist/rust-analyzer-mac")?;
96 gzip(&src, Path::new("dist/rust-analyzer-mac.gz"))?;
97 }
98 _ => {}
99 }
100
101 Ok(()) 83 Ok(())
102} 84}
103 85