Add launcher script to Packager
MODIFY
WalletWasabi.Gui/CommandLine/Daemon.cs
WalletWasabi.Gui/CommandLine/Daemon.cs
@@ -12,7 +12,6 @@ namespace WalletWasabi.Gui.CommandLine
{
public static class Daemon
{
-
public static void Run(string[] args, out bool continueWithGui)
{
var showHelp = false;

MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -363,6 +363,19 @@ namespace WalletWasabi.Packager
process.WaitForExit();
}
+ // Create launcher script
+ var launcherScriptPath = Path.Combine(currentBinDistDirectory, $"{ExecutableName}d.bat");
+
+ var laucherScriptContent = $@"
+@ECHO OFF
+IF ""%*"" == """" GOTO NOPARAMETER
+START /W {newExecutablePath} %*
+GOTO END
+:NOPARAMETER
+{newExecutablePath}
+:end:";
+ File.WriteAllText($"{launcherScriptPath}", laucherScriptContent);
+
// IF IT'S IN ONLYBINARIES MODE DON'T DO ANYTHING FANCY PACKAGING AFTER THIS!!!
if (OnlyBinaries) continue; // In Windows build at this moment it doesn't matter though.
}

Add launcher script to Packager