How to get version of a compiled app externally?

How can I get the version of a compiled app externally without open the app?

There is a general usage for this case: Launcher. If I want to create a launcher which needs to read the version of my app before opening it, for upgrading or something else, is there any way I can reach this?

Not in an easy cross-platform way. Unity does set the platform-specific version information for some platforms (on macOS Contents/Info.plist is updated) but not on others (on Windows the exe contains the Unity version, not the application version).

The version the build itself uses is stored in Data/globalgamemanagers but reading that binary file in a future-proof way from a launcher is not possible.

So maybe the best would be to create a json with your build in IPostprocessBuildWithReport and then you can locate and load that json with your launcher.

2 Likes

Got it. Thanks a lot!