Skip to content

Commit

Permalink
doc: add version spec file option for macOS Bundle. (#5476) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw committed Jan 19, 2021
1 parent f95eb3e commit 621c9d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/spec-files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ An :file:`Info.plist` file is an important part of a Mac OS X app bundle.
of ``Info.plist``.)

|PyInstaller| creates a minimal :file:`Info.plist`.
The ``version`` option can be used to set the application version
using the CFBundleShortVersionString Core Foundation Key.

You can add or overwrite entries in the plist by passing an
``info_plist=`` parameter to the BUNDLE call. Its argument should be a
Python dict with keys and values to be included in the :file:`Info.plist`
Expand All @@ -401,6 +404,7 @@ XML types. Here's an example::
name='myscript.app',
icon=None,
bundle_identifier=None,
version='0.0.1',
info_plist={
'NSPrincipalClass': 'NSApplication',
'NSAppleScriptEnabled': False,
Expand Down
1 change: 1 addition & 0 deletions news/5476.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Doc: Add version spec file option for macOS Bundle.

0 comments on commit 621c9d3

Please sign in to comment.