Skip to content

Commit

Permalink
fix(cli): Apple Dev Teams format for info::Section::Display (#7282)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
  • Loading branch information
i-c-b and lucasfernog authored Jun 24, 2023
1 parent 38d0bed commit 5eb8554
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changes/cli-apple-dev-team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:bug'
---

Fix `tauri info` failing when there is no available iOS code signing certificate.
15 changes: 9 additions & 6 deletions tooling/cli/src/info/ios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ pub fn items() -> Vec<SectionItem> {
let teams = tauri_mobile::apple::teams::find_development_teams().unwrap_or_default();
Some((
if teams.is_empty() {
"None".red().to_string()
"Developer Teams: None".red().to_string()
} else {
teams
.iter()
.map(|t| format!("{} (ID: {})", t.name, t.id))
.collect::<Vec<String>>()
.join(", ")
format!(
"Developer Teams: {}",
teams
.iter()
.map(|t| format!("{} (ID: {})", t.name, t.id))
.collect::<Vec<String>>()
.join(", ")
)
},
Status::Neutral,
))
Expand Down

0 comments on commit 5eb8554

Please sign in to comment.