Skip to content

Commit

Permalink
maybe fix self- updating issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella committed Jan 5, 2024
1 parent ec9a855 commit 11699e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pocket_updater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>2.43.0</Version>
<Version>2.43.1</Version>
<Description>Keep your Analogue Pocket up to date</Description>
<Copyright>2023 Matt Pannella</Copyright>
<Authors>Matt Pannella</Authors>
Expand Down
4 changes: 3 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ private static int UpdateSelfAndRun(string directory, string[] updaterArgs)
try {
// Load System.IO.Compression now
Assembly.Load("System.IO.Compression");
Assembly.Load("System.IO.Pipes");
if(GetPlatform() != "win") {
Assembly.Load("System.IO.Pipes");
}

// Move current process file
Console.WriteLine($"Renaming {execLocation} to {backupLocation}");
Expand Down

0 comments on commit 11699e0

Please sign in to comment.