Skip to content

Commit b9cf3ed

Browse files
Update src/commands/mobile_app/upload.rs
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
1 parent 6c078ce commit b9cf3ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commands/mobile_app/upload.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,8 @@ fn ipa_to_xcarchive(ipa_path: &Path, ipa_bytes: &[u8]) -> Result<TempFile> {
235235
// Extract .app from Payload/ directory
236236
for i in 0..ipa_archive.len() {
237237
let mut file = ipa_archive.by_index(i)?;
238-
let file_path = file.name().to_string();
239238

240-
if let Some(stripped) = file_path.strip_prefix("Payload/") {
239+
if let Some(stripped) = file.name().strip_prefix("Payload/") {
241240
if let Some(app_folder_name) = stripped.strip_suffix(".app/") {
242241
app_name = app_folder_name.to_string();
243242
debug!("Found app: {}", app_name);

0 commit comments

Comments
 (0)