Skip to content

Commit

Permalink
🚧 Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Sep 18, 2023
1 parent 0925ec9 commit 566cc4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Binary file modified res/windows/makepri/images/Square44x44Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions src/BD.WTTS.Client/Migrations/Migrations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,23 @@ static void MoveDirByScripts(string rootPath, string? newDirName = null)
{
try
{
var oldPath = Path.Combine(rootPath, DirName_Scripts);
if (Directory.Exists(oldPath))
var newPath = Path.Combine(rootPath,
AssemblyInfo.Plugins,
AssemblyInfo.Accelerator,
newDirName ?? DirName_Scripts);
if (!Directory.Exists(newPath))
{
var newPath = Path.Combine(rootPath, AssemblyInfo.Plugins, AssemblyInfo.Accelerator, newDirName ?? DirName_Scripts);
Directory.Move(oldPath, newPath);
var oldPath = Path.Combine(rootPath, DirName_Scripts);
if (Directory.Exists(oldPath))
{
Directory.Move(oldPath, newPath);
}
}
}
catch (Exception e)
{
Log.Error(nameof(Migrations), e, "MoveDirByScriptsFail, rootPath: {rootPath}", rootPath);
Log.Error(nameof(Migrations), e,
"MoveDirByScriptsFail, rootPath: {rootPath}", rootPath);
}
}
}

0 comments on commit 566cc4c

Please sign in to comment.