Skip to content

Commit b36d735

Browse files
committed
PR feedback
1 parent 685a879 commit b36d735

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/commands/build/upload.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ fn upload_file(
570570
mod tests {
571571
use super::*;
572572
use std::fs;
573+
use std::os::unix::fs::symlink;
573574
use zip::ZipArchive;
574575

575576
#[test]
@@ -653,10 +654,7 @@ mod tests {
653654
}
654655

655656
#[test]
656-
#[cfg(not(windows))]
657657
fn test_normalize_directory_preserves_symlinks() -> Result<()> {
658-
use std::os::unix::fs::symlink;
659-
660658
let temp_dir = crate::utils::fs::TempDir::create()?;
661659
let test_dir = temp_dir.path().join("TestApp.xcarchive");
662660
fs::create_dir_all(test_dir.join("Products"))?;

src/utils/build/normalize.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ fn add_entries_to_zip(
7575
}
7676

7777
// For XCArchive directories, we'll zip the entire directory
78+
// It's important to not change the contents of the directory or the size
79+
// analysis will be wrong and the code signature will break.
7880
pub fn normalize_directory(path: &Path, parsed_assets_path: &Path) -> Result<TempFile> {
7981
debug!("Creating normalized zip for directory: {}", path.display());
8082

0 commit comments

Comments
 (0)