Skip to content

Commit

Permalink
Merge pull request #519 from itchio/non-mono-update-dot-exe
Browse files Browse the repository at this point in the history
Don't copy the Mono variant of Update.exe into embedded zip
  • Loading branch information
anaisbetts committed Dec 12, 2015
2 parents afea4ec + 890cce8 commit 11f09ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Update/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ async Task<string> createSetupEmbeddedZip(string fullPackage, string releasesDir
this.Log().Info("Building embedded zip file for Setup.exe");
using (Utility.WithTempDirectory(out tempPath, null)) {
this.ErrorIfThrows(() => {
File.Copy(Assembly.GetEntryAssembly().Location, Path.Combine(tempPath, "Update.exe"));
File.Copy(Assembly.GetEntryAssembly().Location.Replace("-Mono.exe", ".exe"), Path.Combine(tempPath, "Update.exe"));
File.Copy(fullPackage, Path.Combine(tempPath, Path.GetFileName(fullPackage)));
}, "Failed to write package files to temp dir: " + tempPath);

Expand Down

0 comments on commit 11f09ef

Please sign in to comment.