Skip to content

Adding embedded Info.plist to OS X builds#513

Merged
zyedidia merged 1 commit intomicro-editor:masterfrom
samdmarshall:master
Dec 29, 2016
Merged

Adding embedded Info.plist to OS X builds#513
zyedidia merged 1 commit intomicro-editor:masterfrom
samdmarshall:master

Conversation

@samdmarshall
Copy link
Contributor

This adds a metadata file to the binary as part of the build for OS X. This gives the binary a way to be identified by the system (using an info.plist). I followed the pattern of using a golang file as part of the tools/ directory to generate that file and the appropriate flags that need to be provided to the go linker for this to be properly added.

If you would prefer some of this be changed or re-organized in any way, i'd be happy to make any changes.

@zyedidia
Copy link
Member

I'm not very familiar with these info.plist files. Could you possibly explain how the system is using this to "identify" the binary?

@samdmarshall
Copy link
Contributor Author

Sure, in this case it enables a single stand-alone binary to act as a traditional .app bundle. It also allows attributes to be added such as allowing debugging of the binary when SIP is enabled. Each application is identified using a unique bundle identifier (a reverse dns notation string), it allows that program to be associated with specific types of documents and other parts of the system.

more info

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.

2 participants