diff --git a/doc/spec-files.rst b/doc/spec-files.rst index e033ec25d5..f0b9eacb9d 100644 --- a/doc/spec-files.rst +++ b/doc/spec-files.rst @@ -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` @@ -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, diff --git a/news/5476.doc.rst b/news/5476.doc.rst new file mode 100644 index 0000000000..52ab97ee70 --- /dev/null +++ b/news/5476.doc.rst @@ -0,0 +1 @@ +Doc: Add version spec file option for macOS Bundle. \ No newline at end of file