Add scripts for resolving and verifying Chromium binary paths
- Implemented `chrome-path.js` to define functions for locating Chromium binaries across different platforms and nested directories. - Added `verify-chromium.js` to check for the presence of the Chromium binary and log the results, including candidate paths checked. - The scripts support Linux, Windows, and macOS environments, enhancing the flexibility of Chromium binary detection.
This commit is contained in:
@@ -11,10 +11,19 @@ using StellaOps.Plugin.Hosting;
|
||||
using StellaOps.Scanner.Analyzers.OS.Abstractions;
|
||||
using StellaOps.Scanner.Core.Security;
|
||||
|
||||
namespace StellaOps.Scanner.Analyzers.OS.Plugin;
|
||||
|
||||
public sealed class OsAnalyzerPluginCatalog
|
||||
{
|
||||
namespace StellaOps.Scanner.Analyzers.OS.Plugin;
|
||||
|
||||
public interface IOSAnalyzerPluginCatalog
|
||||
{
|
||||
IReadOnlyCollection<IOSAnalyzerPlugin> Plugins { get; }
|
||||
|
||||
void LoadFromDirectory(string directory, bool seal = true);
|
||||
|
||||
IReadOnlyList<IOSPackageAnalyzer> CreateAnalyzers(IServiceProvider services);
|
||||
}
|
||||
|
||||
public sealed class OsAnalyzerPluginCatalog : IOSAnalyzerPluginCatalog
|
||||
{
|
||||
private readonly ILogger<OsAnalyzerPluginCatalog> _logger;
|
||||
private readonly IPluginCatalogGuard _guard;
|
||||
private readonly ConcurrentDictionary<string, Assembly> _assemblies = new(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
Reference in New Issue
Block a user