This commit is contained in:
2025-11-08 16:36:21 +01:00
parent 1a1d8a9337
commit 8779e306da
3 changed files with 44 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Pilz.Runtime;
namespace Pilz.Updating.Client;
@@ -68,4 +69,21 @@ public static class Utils
}
}
}
public static void MakeExecutable(string filePath)
{
var pChmod = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "chmod",
Arguments = $"+x \"{filePath}\"",
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true,
},
};
pChmod.Start();
pChmod.WaitForExit();
}
}