Add an uninstall script (#21213)

Closes #14306

This looks at what #16660 did and install.sh script as a base for the
uninstall.sh script. The script is bundled with the cli by default
unless the cli/no-bundled-uninstall feature is selected which is done,
so package managers could build zed without bundling a useless feature
and increasing binary size.

I don't have capabilities to test this right now, so any help with that
is appreciated.

Release Notes:

- Added an uninstall script for Zed installations done via zed.dev. To
uninstall zed, run `zed --uninstall` via the CLI binary.
This commit is contained in:
Stanislav Alekseev 2024-11-28 10:31:12 +02:00 committed by GitHub
parent e9e260776b
commit a4584c9d13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 197 additions and 0 deletions

5
crates/cli/build.rs Normal file
View file

@ -0,0 +1,5 @@
fn main() {
if std::env::var("ZED_UPDATE_EXPLANATION").is_ok() {
println!(r#"cargo:rustc-cfg=feature="no-bundled-uninstall""#);
}
}