mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Use the same displayName for pre-release versions
This commit is contained in:
parent
d859227ab2
commit
e3f951848f
1 changed files with 2 additions and 10 deletions
|
@ -48,22 +48,14 @@ fn dist_client(version: &str, release_tag: &str, target: &Target) -> Result<()>
|
||||||
}
|
}
|
||||||
|
|
||||||
let _d = pushd("./editors/code")?;
|
let _d = pushd("./editors/code")?;
|
||||||
let nightly = release_tag == "nightly";
|
|
||||||
|
|
||||||
let mut patch = Patch::new("./package.json")?;
|
let mut patch = Patch::new("./package.json")?;
|
||||||
patch
|
patch
|
||||||
.replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version))
|
.replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version))
|
||||||
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag))
|
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag))
|
||||||
.replace(r#""$generated-start": {},"#, "")
|
.replace(r#""$generated-start": {},"#, "")
|
||||||
.replace(",\n \"$generated-end\": {}", "");
|
.replace(",\n \"$generated-end\": {}", "")
|
||||||
|
.replace(r#""enableProposedApi": true,"#, r#""#);
|
||||||
if nightly {
|
|
||||||
patch.replace(
|
|
||||||
r#""displayName": "rust-analyzer""#,
|
|
||||||
r#""displayName": "rust-analyzer (nightly)""#,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
patch.replace(r#""enableProposedApi": true,"#, r#""#);
|
|
||||||
patch.commit()?;
|
patch.commit()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue