update: Add arch and os to release query parameters. (#6976)
This is no-op right now, but we need it for multi-platform support and (potentially) to split the Universal Binary on mac into two non-universal targets. Related to: #6837 Release Notes: - N/A
This commit is contained in:
parent
8fbc88b708
commit
9ef830e9bb
1 changed files with 10 additions and 2 deletions
|
@ -18,7 +18,12 @@ use smol::io::AsyncReadExt;
|
||||||
use settings::{Settings, SettingsStore};
|
use settings::{Settings, SettingsStore};
|
||||||
use smol::{fs::File, process::Command};
|
use smol::{fs::File, process::Command};
|
||||||
|
|
||||||
use std::{ffi::OsString, sync::Arc, time::Duration};
|
use std::{
|
||||||
|
env::consts::{ARCH, OS},
|
||||||
|
ffi::OsString,
|
||||||
|
sync::Arc,
|
||||||
|
time::Duration,
|
||||||
|
};
|
||||||
use update_notification::UpdateNotification;
|
use update_notification::UpdateNotification;
|
||||||
use util::channel::{AppCommitSha, ReleaseChannel};
|
use util::channel::{AppCommitSha, ReleaseChannel};
|
||||||
use util::http::HttpClient;
|
use util::http::HttpClient;
|
||||||
|
@ -249,7 +254,10 @@ impl AutoUpdater {
|
||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let mut url_string = format!("{server_url}/api/releases/latest?asset=Zed.dmg");
|
let mut url_string = format!(
|
||||||
|
"{server_url}/api/releases/latest?asset=Zed.dmg&os={}&arch={}",
|
||||||
|
OS, ARCH
|
||||||
|
);
|
||||||
cx.update(|cx| {
|
cx.update(|cx| {
|
||||||
if let Some(param) = cx
|
if let Some(param) = cx
|
||||||
.try_global::<ReleaseChannel>()
|
.try_global::<ReleaseChannel>()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue