leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
892 stars 125 forks source link

Issues with the way `appVersion` is obtained #207

Open kjxbyz opened 4 months ago

kjxbyz commented 4 months ago

There is a problem with the way appVersion is obtained, because during the build phase, this value can be set dynamically through the command line.

https://github.com/leanflutter/flutter_distributor/blob/f68dfc9d9969881d15f74a907d30cb3048fc1f76/packages/flutter_app_packager/lib/src/api/make_config.dart#L29

prateekmedia commented 1 month ago

It will always fetch pubspec version, so what's the issue with that?

kjxbyz commented 1 month ago

You can also modify the version number and build number through command line parameters