A platform's file may name its architecture
A Mac is offered the macos-arm64 file rather than sent past it to TestFlight. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
aee5048b01
commit
fe7a868b18
+2
-1
@@ -2226,7 +2226,8 @@ fn ReleasesCard(manifest: serde_json::Value) -> impl IntoView {
|
||||
let p = platform.get()?;
|
||||
let arch = arch_for_pick.clone();
|
||||
let ios = ios_for_pick.clone();
|
||||
let own = assets_for_pick.iter().find(|(pl, _, _)| pl == p).cloned();
|
||||
// "macos" is satisfied by a "macos-arm64" file, and so on.
|
||||
let own = assets_for_pick.iter().find(|(pl, _, _)| pl == p || pl.starts_with(&format!("{p}-"))).cloned();
|
||||
let pick: Option<AnyView> = match (p, own) {
|
||||
(_, Some((pl, url, _))) => Some(view! {
|
||||
<p><a class="pill" href=url download>{t(&lang().get(), "for_this_device")} ": " {label(&pl)}</a></p>
|
||||
|
||||
Reference in New Issue
Block a user