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

building: osx: explicitly convert BUNDLE version to string #8378

Merged
merged 1 commit into from Mar 26, 2024

Conversation

rokm
Copy link
Member

@rokm rokm commented Mar 26, 2024

Explicitly convert the value of version argument to BUNDLE into a string, in order to mitigate cases when user accidentally enters an integer or a float. The version value ends up being written to Info.plist as the CFBundleShortVersionString entry, and if this entry is not of a string type (for example, is an integer), the generated .app bundle crashes at start.

Closes #4466.

Explicitly convert the value of `version` argument to `BUNDLE` into
a string, in order to mitigate cases when user accidentally enters
an integer or a float. The version value ends up being written to
`Info.plist` as the `CFBundleShortVersionString` entry, and if this
entry is not of a string type (for example, is an integer), the
generated .app bundle crashes at start.
@rokm rokm enabled auto-merge (rebase) March 26, 2024 20:33
@rokm rokm merged commit 5992871 into pyinstaller:develop Mar 26, 2024
18 checks passed
@rokm rokm deleted the macos-app-bundle-version-string branch March 26, 2024 21:15
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.

Mac OS Catalina App crash on app start
2 participants