From 621c9d3e44d6c2af767e1b22cc93fa811ea900d1 Mon Sep 17 00:00:00 2001 From: Dan Yeaw Date: Tue, 19 Jan 2021 01:31:43 -0500 Subject: [PATCH] doc: add version spec file option for macOS Bundle. (#5476) [skip ci] --- doc/spec-files.rst | 4 ++++ news/5476.doc.rst | 1 + 2 files changed, 5 insertions(+) create mode 100644 news/5476.doc.rst 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