Skip to content

Commit 9b20e0c

Browse files
authored
fix: copy Upgrade.exe to app install path for GeneralUpdate StartApp (#65)
1 parent d5a7c37 commit 9b20e0c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Services/SimulationService.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ public async Task<SimulationResult> RunAsync(
6060
await DotNetPublishAsync(upgradeProj, exeDir);
6161
Log($" Upgrade.exe → {exeDir}", progress);
6262

63-
// Copy to simulation output
63+
// Copy to simulation output AND install path (GeneralUpdate StartApp looks here)
6464
var clientDest = Path.Combine(config.OutputDirectory, "Client.exe");
65-
var upgradeDest = Path.Combine(config.OutputDirectory, "Upgrade.exe");
6665
File.Copy(Path.Combine(exeDir, "ClientSample.exe"), clientDest, true);
67-
File.Copy(Path.Combine(exeDir, "UpgradeSample.exe"), upgradeDest, true);
66+
67+
var upgradeExe = Path.Combine(exeDir, "UpgradeSample.exe");
68+
File.Copy(upgradeExe, Path.Combine(config.OutputDirectory, "Upgrade.exe"), true);
69+
File.Copy(upgradeExe, Path.Combine(config.AppDirectory, "Upgrade.exe"), true);
70+
Log($" Upgrade.exe → {config.AppDirectory}", progress);
6871

6972
// 4. Start server
7073
Log("STEP 4: Starting local server", progress);

0 commit comments

Comments
 (0)