fix incorrect path in Windows installer (#582, #588)

This commit is contained in:
Jesse Plamondon-Willard 2018-08-31 17:44:37 -04:00
parent 9c7858a28a
commit e4a5d8d46a
1 changed files with 1 additions and 3 deletions

View File

@ -319,9 +319,7 @@ namespace StardewModdingApi.Installer
}
// get folders
DirectoryInfo packageDir = platform.IsMono()
? new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)) // installer runs from internal folder on Mono
: new DirectoryInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "internal", "Windows"));
DirectoryInfo packageDir = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
paths = new InstallerPaths(packageDir, installDir, EnvironmentUtility.GetExecutableName(platform));
}
Console.Clear();