superunitybuild / buildtool

A powerful automation tool for quickly and easily generating builds with Unity.
MIT License
1.21k stars 120 forks source link

Fixed: open build folder fails w/bad slashes #102

Closed nickfourtimes closed 1 year ago

nickfourtimes commented 1 year ago

There are two places where we use System.Diagnostics.Process.Start to open an explorer window in the build folder: with an explicit button in the build window, and automatically after a build. On Windows, if the build path was input manually and with forward slashes, this call would fail. Using Path.GetFullPath() circumvents this by converting the given path to a native-compatible format.

robinnorth commented 1 year ago

Thanks for this, @nickfourtimes!