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

Does not update CFBundleShortVersionString in Info.plist after it has set to a pre-release version #39

Open
ReneHRich opened this issue Aug 14, 2024 · 0 comments

Comments

@ReneHRich
Copy link

Using capacitor standard-version, version: 1.1.21: Note: 1.1.21 is the latest build in npmjs

After the CFBundleShortVersionString gets updated to a value that does not contain only numbers; It no longer updates that string.

Starting with package.json version 4.1.1; it has generated CFBundleShortVersionString===4.1.1:

<plist version="1.0">
<dict>
...
	<key>CFBundleShortVersionString</key>
	<string>4.1.1</string>
...

Run a prerelease update:
npx capacitor-standard-version --prerelease

Sets the version number to:

<plist version="1.0">
<dict>
...
	<key>CFBundleShortVersionString</key>
	<string>4.1.2-0</string>
...

If you run the command again; It bumps package-lock from 4.1.2-0 to 4.1.2-1, but the CFBundleShortVersionString no longer gets updated.

npx capacitor-standard-version --prerelease

<plist version="1.0">
<dict>
...
	<key>CFBundleShortVersionString</key>
	<string>4.1.2-0</string>
...
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

No branches or pull requests

1 participant