Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy permissions when merging macOS app packages #1512

Merged
merged 5 commits into from
Oct 26, 2023

Conversation

freakboy3742
Copy link
Member

Fixes #1510

When merging app packages, file permissions (and in particular, the executable bit) are now preserved.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742 freakboy3742 requested a review from mhsmith October 25, 2023 01:41
Comment on lines 248 to 250
self.tools.shutil.copyfile(source_path, target_path)
# Ensure permissions as well.
self.tools.shutil.copymode(source_path, target_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shutil.copy looks like a simpler way of doing this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love an API that has 3 different ways to copy a file... excluding the handful of other options in other modules... 🙄

@freakboy3742 freakboy3742 requested a review from mhsmith October 25, 2023 22:54
@mhsmith mhsmith merged commit a03d53a into beeware:main Oct 26, 2023
34 checks passed
@freakboy3742 freakboy3742 deleted the merge-permissions branch October 26, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

macOS app-package merging doesn't preserve executable permissions
2 participants