Skip to content

Commit

Permalink
Use copy rather than copyfile to preserve permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Oct 25, 2023
1 parent 9f02eac commit f0a77e2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/briefcase/platforms/macOS/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,9 @@ def merge_app_packages(
f"between sources; ignoring {source_app_packages.suffix[1:]} version."
)
else:
# The file doesn't exist yet; copy it as is, and store the
# digest for later comparison
self.tools.shutil.copyfile(source_path, target_path)
# Ensure permissions as well.
self.tools.shutil.copymode(source_path, target_path)
# The file doesn't exist yet; copy it as is (including
# permissions), and store the digest for later comparison
self.tools.shutil.copy(source_path, target_path)
digests[relative_path] = sha256_file_digest(source_path)

# Call lipo on each dylib that was found to create the fat version.
Expand Down

0 comments on commit f0a77e2

Please sign in to comment.