Merge pull request #18412 from lnicola/windows-no-gz

internal: Stop producing .gz artifacts for Windows
This commit is contained in:
Laurențiu Nicola 2024-10-28 10:11:29 +00:00 committed by GitHub
commit d481decd06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,9 +101,10 @@ fn dist_server(
cmd!(sh, "cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target_name} {features...} --release").run()?;
let dst = Path::new("dist").join(&target.artifact_name);
gzip(&target.server_path, &dst.with_extension("gz"))?;
if target_name.contains("-windows-") {
zip(&target.server_path, target.symbols_path.as_ref(), &dst.with_extension("zip"))?;
} else {
gzip(&target.server_path, &dst.with_extension("gz"))?;
}
Ok(())