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

Add option for copying keys into Info.plist on MacOS #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikayla-maki
Copy link

Hello!

We're building a local app and need to add some additional keys into our Info.plist for requesting access to system services like the microphone. So I decided to take a crack at implementing #33 for MacOS.

Current implementation is simple:

  • It adds a osx_info_plist_exts field into the bundle settings,
  • It reads each file in that path, and blindly appends it's contents into the Info.plist file, after cargo-bundle has generated it's keys but before it closes the <dict> and <plist>.

I haven't written documentation for this yet, as I imagine folks here will have some thoughts on the name and behavior for this.

Let me know what you think!

@mikayla-maki mikayla-maki changed the title Add support for copying plist extensions into Info.plist on MacOS Add option for copying keys into Info.plist on MacOS Jun 13, 2023
@9mm
Copy link

9mm commented Dec 19, 2023

This would be awesome, because I really need CFBundleDocumentTypes

@ActuallyHappening
Copy link
Contributor

Did you use https://docs.rs/plist/latest/plist/?
Might make implementations a little better idk

@n1ght-hunter
Copy link

any chance this could be merged.
looking to use this functionality

@hacknus
Copy link

hacknus commented Jan 19, 2025

Would be great if this could be merged, I also need to use CFBundleDocumentTypes

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.

5 participants