Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update release urls to match new zed.dev url format

Joseph Lyons1da5be6e8fee
diff --git a/.github/workflows/release_actions.yml b/.github/workflows/release_actions.yml
index 65866baf7f1..3866ee6c7b6 100644
--- a/.github/workflows/release_actions.yml
+++ b/.github/workflows/release_actions.yml
@@ -14,7 +14,7 @@ jobs:
content: |
📣 Zed ${{ github.event.release.tag_name }} was just released!
- Restart your Zed or head to https://zed.dev/releases to grab it.
+ Restart your Zed or head to https://zed.dev/releases/latest to grab it.
```md
### Changelog
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rs
index d73523c8bd0..bda45053b13 100644
--- a/crates/auto_update/src/auto_update.rs
+++ b/crates/auto_update/src/auto_update.rs
@@ -70,7 +70,14 @@ pub fn init(db: project::Db, http_client: Arc<dyn HttpClient>, cx: &mut MutableA
}
});
cx.add_global_action(move |_: &ViewReleaseNotes, cx| {
- cx.platform().open_url(&format!("{server_url}/releases"));
+ let latest_release_url = if cx.has_global::<ReleaseChannel>()
+ && *cx.global::<ReleaseChannel>() == ReleaseChannel::Preview
+ {
+ format!("{server_url}/releases/preview/latest")
+ } else {
+ format!("{server_url}/releases/latest")
+ };
+ cx.platform().open_url(&latest_release_url);
});
cx.add_action(UpdateNotification::dismiss);
}
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index e849632a2df..c6862e66e41 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -213,21 +213,6 @@ fn init_paths() {
std::fs::create_dir_all(&*zed::paths::LANGUAGES_DIR).expect("could not create languages path");
std::fs::create_dir_all(&*zed::paths::DB_DIR).expect("could not create database path");
std::fs::create_dir_all(&*zed::paths::LOGS_DIR).expect("could not create logs path");
-
- // Copy setting files from legacy locations. TODO: remove this after a few releases.
- thread::spawn(|| {
- if std::fs::metadata(&*zed::paths::legacy::SETTINGS).is_ok()
- && std::fs::metadata(&*zed::paths::SETTINGS).is_err()
- {
- std::fs::copy(&*zed::paths::legacy::SETTINGS, &*zed::paths::SETTINGS).log_err();
- }
-
- if std::fs::metadata(&*zed::paths::legacy::KEYMAP).is_ok()
- && std::fs::metadata(&*zed::paths::KEYMAP).is_err()
- {
- std::fs::copy(&*zed::paths::legacy::KEYMAP, &*zed::paths::KEYMAP).log_err();
- }
- });
}
fn init_logger() {