Skip to content

Commit

Permalink
Fixed updater not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-Codes committed Jun 6, 2021
1 parent 4e7e063 commit 682f82d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Anamnesis/Anamnesis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="move $(OutDir)\Data $(OutDir)..\Data&#xD;&#xA;move $(OutDir)\Languages $(OutDir)..\Languages" />
<Exec Command="xcopy /S /Q /Y /F $(SolutionDir)Lib\PropertyChanged.dll $(OutDir)&#xD;&#xA;move $(OutDir)\Data $(OutDir)..\Data&#xD;&#xA;move $(OutDir)\Languages $(OutDir)..\Languages" />
</Target>

</Project>
Expand Down
4 changes: 3 additions & 1 deletion UpdateExtractor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Program
{
public static void Main(string[] args)
{
string destDir = args[0];
string? destDir = args[0];
string processName = args[1];
Console.WriteLine($"{processName} Updater");

Expand Down Expand Up @@ -45,6 +45,8 @@ public static void Main(string[] args)
if (string.IsNullOrEmpty(sourceDir))
throw new Exception("Unable to determine source directory");

destDir = Path.GetDirectoryName(destDir) + "\\";

if (string.IsNullOrEmpty(destDir))
throw new Exception("Unable to determine destination directory");

Expand Down

0 comments on commit 682f82d

Please sign in to comment.