Skip to content

Include build number when renaming hotfix releases of Unity #274

@JensRestemeier

Description

@JensRestemeier

Issue Checklist

  • I'm using the latest u3d version
  • I ran u3d --help
  • I read the README
  • I made sure that a similar issue doesn't exit

Issue Description

We sometimes have hotfix releases installed in parallel to official releases. They'll have the same version, but they'll have a different revision code. Renaming them to the plain version number will not be possible because of the conflict to the official release.

When I install them manually I usually use the Unity_<version>_<revision> pattern.

Suggestion:

  • check the installed revision to the official revision
  • if they match, use the usual Unity_<version> pattern
  • if they don't match, use Unity_<version>_<revision>

The official revision seems to be used as part of the download url, i.e.:

u3d available
...
Version 5.4.1f1: https://download.unity3d.com/download_unity/**649f48bbbf0f**/
...

This revision is displayed in Unity in Help/About after pressing "Alt" on the keyboard.

At the start of the log file:

Built from '5.4/release' branch; Version is '5.4.1f1 (649f48bbbf0f) revision 6594376'; Using compiler version '160040219'

Unfortunately I haven't found a good way to find this without running Unity, yet. On OSX it is in the UnityBuildNumber plist key. On Windows there seems to be a special "Unity Version" resource in the exe:

BLOCK "StringFileInfo"
{
BLOCK "040904b0"
{
VALUE "CompanyName", "Unity Technologies ApS"
VALUE "FileDescription", "Unity Editor"
VALUE "FileVersion", "5.4.1.6594376"
VALUE "LegalCopyright", "(c) 2016 Unity Technologies ApS. All rights reserved."
VALUE "ProductName", "Unity"
VALUE "ProductVersion", "5.4.1.6594376"
VALUE "Unity Version", "5.4.1f1_649f48bbbf0f"
}
}

This can be seen in "Resource Hacker". I am not a Ruby hacker, so I have no idea if there is a package to open .exe version resources...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions