Skip to content

Commit bcdfcc0

Browse files
committed
Fix library mmc/prism upgrades
1 parent 56debf9 commit bcdfcc0

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ornithe-installer-rs"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
edition = "2024"
55
authors = [
66
"moehreag"

src/actions/mmc_pack.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pub async fn install(
8282

8383
info!("Fetching library information...");
8484

85-
let extra_libs = meta::fetch_profile_libraries(&intermediary_version).await?;
85+
let extra_libs = meta::fetch_profile_libraries(&version.id).await?;
86+
info!("Found {} library upgrade patches", extra_libs.len());
8687

8788
let mut zip: Box<dyn Writer> = if generate_zip {
8889
info!("Generating instance zip...");

src/net/meta.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ pub struct ProfileJsonLibrary {
213213
}
214214

215215
pub async fn fetch_profile_libraries(
216-
version: &IntermediaryVersion,
216+
version: &str,
217217
) -> Result<Vec<ProfileJsonLibrary>, InstallerError> {
218218
let library_upgrades = super::CLIENT
219-
.get(META_URL.to_owned() + &format!("/v3/versions/libraries/{}", version.version))
219+
.get(META_URL.to_owned() + &format!("/v3/versions/libraries/{}", version))
220220
.send()
221221
.await?
222222
.json::<Vec<ProfileJsonLibrary>>()

0 commit comments

Comments
 (0)