Skip to content

Commit

Permalink
Update UpdateManager.ApplyReleases.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Galkon committed Jan 25, 2024
1 parent ae850cf commit 311fd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Squirrel/UpdateManager.ApplyReleases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ await ReleasePackage.ExtractZipForInstall(

// Write the path of the current executable to setup.txt

this.Log().Info("Writing setup.txt to app directory: {0}", target.FullName);
this.Log().Info("Writing setup.txt to root app directory: {0}", rootAppDirectory);
this.ErrorIfThrows(() => {
var exePath = Assembly.GetEntryAssembly().Location;
var setupFilePath = Path.Combine(target.FullName, "setup.txt");
var setupFilePath = Path.Combine(rootAppDirectory, "setup.txt");
File.WriteAllText(setupFilePath, exePath);
}, "Couldn't write setup path to file");

Expand Down

0 comments on commit 311fd5c

Please sign in to comment.