Remove execution permissions
MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -839,10 +839,22 @@ namespace WalletWasabi.Packager
string debDestopFileLinuxPath = Tools.LinuxPathCombine(debUsrAppFolderRelativePath, $"{ExecutableName}.desktop");
var wasabiStarterScriptLinuxPath = Tools.LinuxPathCombine(debUsrLocalBinFolderRelativePath, $"{ExecutableName}");
+ var commands = new[] {
+ "cd ~",
+ "sudo umount /mnt/c",
+ "sudo mount -t drvfs C: /mnt/c -o metadata",
+ "cd /mnt/c/Users/lucas/Desktop/WalletWasabi/WalletWasabi.Gui/bin/dist",
+ $"sudo find {Tools.LinuxPath(newFolderRelativePath)} -type f -not -name 'wassabee' -exec chmod 644 {{}} \\;",
+ $"sudo chmod +x {wasabiStarterScriptLinuxPath}",
+ $"sudo chmod -R 0775 {Tools.LinuxPath(debianFolderRelativePath)}",
+ $"sudo chmod -R 0644 {debDestopFileLinuxPath}",
+ $"dpkg --build {Tools.LinuxPath(debFolderRelativePath)} $(pwd)"
+ };
+ string arguments = string.Join(" && ", commands);
using (var process = Process.Start(new ProcessStartInfo
{
FileName = "wsl",
- Arguments = $"cd ~ && sudo umount /mnt/c && sudo mount -t drvfs C: /mnt/c -o metadata && cd /mnt/c/Users/user/Desktop/WalletWasabi/WalletWasabi.Gui/bin/dist && sudo chmod +x {debExeLinuxPath} && sudo chmod +x {wasabiStarterScriptLinuxPath} && sudo chmod -R 0644 {debDestopFileLinuxPath} && sudo chmod -R 0775 {Tools.LinuxPath(debianFolderRelativePath)} && dpkg --build {Tools.LinuxPath(debFolderRelativePath)} $(pwd)",
+ Arguments = arguments,
RedirectStandardInput = true,
WorkingDirectory = BinDistDirectory
}))

Remove execution permissions