aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-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