clear sosdocsunix.txt
MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -178,6 +178,7 @@ namespace WalletWasabi.Packager
}
Tools.ClearSha512Tags(currentBinDistDirectory);
+ Tools.RemoveSosDocsUnix(currentBinDistDirectory);
// Remove Tor binaries those are not relevant to the platform.
var torFolder = new DirectoryInfo(Path.Combine(currentBinDistDirectory, "TorDaemons"));

MODIFY
WalletWasabi.Packager/Tools.cs
WalletWasabi.Packager/Tools.cs
@@ -10,10 +10,10 @@ namespace WalletWasabi.Packager
public static void ClearSha512Tags(string pathToSearch)
{
var files = Directory.GetFiles(pathToSearch, "*.deps.json"); //https://natemcmaster.com/blog/2017/12/21/netcore-primitives/
- if (files == null || files.Length == 0) return;
-
- var depsFilePath = files[0];
+ if (files == null) return;
+ foreach (var depsFilePath in files)
+ {
var lines = File.ReadAllLines(depsFilePath);
List<string> outLines = new List<string>();
@@ -36,4 +36,16 @@ namespace WalletWasabi.Packager
File.WriteAllLines(depsFilePath, outLines);
}
}
+
+ public static void RemoveSosDocsUnix(string pathToSearch)
+ {
+ string[] files = Directory.GetFiles(pathToSearch, "sosdocsunix.txt", SearchOption.AllDirectories);
+ if (files == null) return;
+
+ foreach (var sosDocsUnixFilePath in files)
+ {
+ File.Delete(sosDocsUnixFilePath);
+ }
+ }
+ }
}

clear sosdocsunix.txt