-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[feat] Support custom CFBundleVersion for iOS and macOS #12479
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
[feat] Support custom CFBundleVersion for iOS and macOS #12479
Comments
note that |
It's great that the However, I have an error when releasing my tauri app. After updating to the latest Tauri version, our releases fail with an error from the App Store. This is because The only workaround now is to manually specify Would it be possible to reintroduce an option for automatic timestamp-based |
Thanks for your comments @h3poteto. It's helpful to understand your use-case. I would comment that while this may have worked before it isn't the responsibility of the build toolchain to handle automatic generation of I would suggest simply injecting the value you require in the CI/CD pipeline. This can be done with a simple script i.e. Shell, PowerShell etc and integrated into your pipeline of choice i.e. GitLab, GitHub, Azure DevOps etc. I'm happy to provide sample scripts if that would be helpful? |
In theory I totally agree with you but since it's something tauri did I still wonder if we should allow users to specify "timestamp" for example and let tauri do the old behavior. Maybe not forever but for v2? Really unsure, maybe it's better to just rip the bandaid while there aren't that many published apps yet. |
If it had acted like that from the beginning, there would have been no problem, and I agree with you. However, the behavior has changed midway, so people who had already published apps are having problems. In fact, apps that already used a datetime-based (the old behavior) bundleVersion cannot add a free
|
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
For iOS, Tauri synchronizes both
CFBundleVersion
andCFBundleShortVersionString
with the version property intauri.conf.json
. Android separately defines aversionCode
property which is settable in the bundle configuration.This means we cannot distinguish between the user-facing version visible in stores and the developer-facing build version. Expo for React Native handles this well by defining the following configuration properties:
version
versionName
name in android/app/build.gradle. On iOS, it representsCFBundleShortVersionString
in Info.plist.android.versionCode
versionCode
in android/app/build.gradle.ios.buildNumber
CFBundleVersion
in Info.plist.Describe the solution you'd like
Implement a similiar approach in
tauri.config.json
for defining the developer-facing build version for iOS and macOS.Alternatives considered
N/A
Additional context
#10944.
The text was updated successfully, but these errors were encountered: