Fix --signTemplate on Linux

This commit is contained in:
iamncwilson
2025-01-21 10:37:50 +11:00
committed by Caelan
parent fa0f0ea8bf
commit 3aea55f0aa

View File

@@ -119,7 +119,7 @@ public class CodeSign
if (!VelopackRuntimeInfo.IsWindows) { if (!VelopackRuntimeInfo.IsWindows) {
fileName = "/bin/bash"; fileName = "/bin/bash";
string escapedCommand = command.Replace("'", "'\\''"); string escapedCommand = command.Replace("'", "'\\''");
args = $"-c '{escapedCommand} >> \"{signLogFile}\" 2>&1'"; args = $"-c \"{escapedCommand} >> \\\"{signLogFile}\\\" 2>&1\"";
} }
var psi = new ProcessStartInfo { var psi = new ProcessStartInfo {