diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/dist.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 4afdec69c..4212f90ca 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs | |||
@@ -7,7 +7,7 @@ use std::{ | |||
7 | 7 | ||
8 | use anyhow::Result; | 8 | use anyhow::Result; |
9 | use flate2::{write::GzEncoder, Compression}; | 9 | use flate2::{write::GzEncoder, Compression}; |
10 | use xshell::{cmd, cp, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file}; | 10 | use xshell::{cmd, mkdir_p, pushd, pushenv, read_file, rm_rf, write_file}; |
11 | 11 | ||
12 | use crate::{date_iso, flags, project_root}; | 12 | use crate::{date_iso, flags, project_root}; |
13 | 13 | ||
@@ -81,24 +81,6 @@ fn dist_server(release_channel: &str) -> Result<()> { | |||
81 | let dst = Path::new("dist").join(format!("rust-analyzer-{}{}", target, suffix)); | 81 | let dst = Path::new("dist").join(format!("rust-analyzer-{}{}", target, suffix)); |
82 | gzip(&src, &dst.with_extension("gz"))?; | 82 | gzip(&src, &dst.with_extension("gz"))?; |
83 | 83 | ||
84 | // FIXME: the old names are temporarily kept for client compatibility, but they should be removed | ||
85 | // Remove this block after a couple of releases | ||
86 | match target.as_ref() { | ||
87 | "x86_64-unknown-linux-gnu" => { | ||
88 | cp(&src, "dist/rust-analyzer-linux")?; | ||
89 | gzip(&src, Path::new("dist/rust-analyzer-linux.gz"))?; | ||
90 | } | ||
91 | "x86_64-pc-windows-msvc" => { | ||
92 | cp(&src, "dist/rust-analyzer-windows.exe")?; | ||
93 | gzip(&src, Path::new("dist/rust-analyzer-windows.gz"))?; | ||
94 | } | ||
95 | "x86_64-apple-darwin" => { | ||
96 | cp(&src, "dist/rust-analyzer-mac")?; | ||
97 | gzip(&src, Path::new("dist/rust-analyzer-mac.gz"))?; | ||
98 | } | ||
99 | _ => {} | ||
100 | } | ||
101 | |||
102 | Ok(()) | 84 | Ok(()) |
103 | } | 85 | } |
104 | 86 | ||