mindcandy / Teamcity-unity3d-build-runner-plugin

A Teamcity plugin for building Unity3d projects. NOTE: this has an MIT license so feel free to copy / adapt as you need to.
107 stars 59 forks source link

Won't find unity install on windows #21

Open MitchellBurton opened 9 years ago

MitchellBurton commented 9 years ago

The plugin fails to find my install of unity on a windows build agent. By the looks of things it has something to do with me running 32-bit java on 64-bit windows with 64-bit unity.

Will investigate further.

MitchellBurton commented 9 years ago

Yup, was an environment issue.

On 32 bit windows: ProgramFiles will return "c:\Program Files" ProgramFiles(X86) will return "" ProgramW6432 will return ""

On 64 bit windows with 32 bit java: ProgramFiles will return "c:\Program Files (x86)" ProgramFiles(X86) will return "c:\Program Files (x86)" ProgramW6432 will return "c:\Program Files"

On 64 bit windows with 64 bit java: ProgramFiles will return "c:\Program Files" ProgramFiles(X86) will return "c:\Program Files (x86)" ProgramW6432 will return "c:\Program Files"

weltenbauer commented 8 years ago

Possible workaround for the issue:

MitchellBurton commented 8 years ago

Prebuilt version of the PR: https://github.com/MitchellBurton/Teamcity-unity3d-build-runner-plugin/releases/tag/v0.1