[skip ci] restore componentsgenerated on after signing
MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -67,6 +67,14 @@ namespace WalletWasabi.Packager
});
Console.WriteLine();
+ Console.WriteLine();
+ if (Directory.Exists(binDistDirectory))
+ {
+ IoHelpers.DeleteRecursivelyWithMagicDustAsync(binDistDirectory).GetAwaiter().GetResult();
+ Console.WriteLine($"Deleted {binDistDirectory}");
+ }
+ Directory.CreateDirectory(finalDirectory);
+
if (doPublish)
{
var psiBuild = new ProcessStartInfo
@@ -79,13 +87,6 @@ namespace WalletWasabi.Packager
pBuild.StandardInput.WriteLine("dotnet clean --configuration Release && exit");
pBuild.WaitForExit();
- Console.WriteLine();
- if (Directory.Exists(binDistDirectory))
- {
- IoHelpers.DeleteRecursivelyWithMagicDustAsync(binDistDirectory).GetAwaiter().GetResult();
- Console.WriteLine($"Deleted {binDistDirectory}");
- }
-
foreach (string target in targets)
{
string currentBinDistDirectory = Path.GetFullPath(Path.Combine(binDistDirectory, target));
@@ -170,7 +171,6 @@ namespace WalletWasabi.Packager
}
}
- Directory.CreateDirectory(finalDirectory);
if (doSign is true)
{
foreach (string target in targets)
@@ -203,6 +203,16 @@ namespace WalletWasabi.Packager
var signProcess = Process.Start(psiSignProcess);
signProcess.StandardInput.WriteLine($"gpg --armor --detach-sign {finalFile} && exit");
signProcess.WaitForExit();
+
+ var psiRestoreHeat = new ProcessStartInfo
+ {
+ FileName = "cmd",
+ RedirectStandardInput = true,
+ WorkingDirectory = wixProjectDirectory
+ };
+ var restoreHeatProcess = Process.Start(psiRestoreHeat);
+ restoreHeatProcess.StandardInput.WriteLine($"git checkout -- ComponentsGenerated.wxs && exit");
+ restoreHeatProcess.WaitForExit();
}
}

[skip ci] restore componentsgenerated on after signing