Update webrtc-sys to default to using prebuilt

This commit is contained in:
adel-signal 2026-04-06 13:07:23 -07:00 committed by GitHub
parent 597e660276
commit c1e2752bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ version.workspace = true
authors.workspace = true
[features]
default = ["prebuilt-webrtc"]
prebuilt-webrtc = ["webrtc-sys-build/prebuilt-webrtc"]
simulator = ["webrtc-sys-build/simulator"]

View File

@ -264,9 +264,10 @@ pub fn download_prebuilt() -> anyhow::Result<()> {
.unwrap_or_else(|| panic!("could not find checksum for artifact key: {}", *TARGET_KEY))
.as_str()
.expect("artifact checksum must be string");
// TODO: build support for prebuilt debug profile
let archive_filename = format!(
"webrtc-{}-{}-{}.tar.bz2",
*WEBRTC_VERSION, *TARGET_PAIR, *PROFILE
*WEBRTC_VERSION, *TARGET_PAIR, "release"
);
let archive_local_dir = format!("{}/{}", *OUTPUT_DIR, *TARGET_KEY);
let archive_local_path = format!("{}/{}", archive_local_dir, archive_filename);