don't copy log when in install dir

This commit is contained in:
IsWaffle 2024-07-04 21:55:18 -04:00
parent a70590d92a
commit a61e53d56a
2 changed files with 7 additions and 2 deletions

View File

@ -10,8 +10,8 @@
<PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\spt_installer.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.83</AssemblyVersion>
<FileVersion>2.83</FileVersion>
<AssemblyVersion>2.84</AssemblyVersion>
<FileVersion>2.84</FileVersion>
<Company>SPT</Company>
</PropertyGroup>

View File

@ -182,6 +182,11 @@ public class MessageViewModel : ViewModelBase
try
{
if (data.TargetInstallPath == Environment.CurrentDirectory)
{
return;
}
File.Copy(App.LogPath, Path.Join(data.TargetInstallPath, "spt-installer.log"), true);
}
catch (Exception ex)