aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-22 19:35:02 +0100
committerGitHub <[email protected]>2021-05-22 19:35:02 +0100
commitbc1ba1549d97e7d5ddceb16b7238ae8aab5794d0 (patch)
tree41a8660547994c8464cee49164446152e8981073 /xtask
parent787caa3f24c47d9669afe23073175f2459b2cac4 (diff)
parent7ff972f0ce31343aa6e4809c8b8ac8aa3b33f2e5 (diff)
Merge #8926
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 <[email protected]>
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 4afdec69c..4212f90ca 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
@@ -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