From 890cce85fb2e43ac033204505f947f23ded4e29a Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Fri, 11 Dec 2015 23:35:05 +0100 Subject: [PATCH] Don't copy the Mono variant of Update.exe into embedded zip --- src/Update/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Update/Program.cs b/src/Update/Program.cs index 4d57dc94d..7a342ca2d 100644 --- a/src/Update/Program.cs +++ b/src/Update/Program.cs @@ -534,7 +534,7 @@ async Task 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);