Merge pull request 'don't copy log when in install dir' (#97) from waffle.lord/Installer:fix/log-copy-error into master

Reviewed-on: SPT/Installer#97
This commit is contained in:
IsWaffle 2024-07-05 01:55:47 +00:00
commit 6502dde280
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)