Refactor driver management into dedicated modules

Relocates driver-specific download, parsing, and management logic from the main UI script and the FFUUI.Core module into new, dedicated modules for each manufacturer (Dell, HP, Lenovo, Microsoft). This improves modularity and code organization.

Additionally, centralizes common HTTP headers and user agent strings in the FFUUI.Core module, accessible via a new helper function.
This commit is contained in:
rbalsleyMSFT
2025-06-12 15:47:46 -07:00
parent 9282b4231e
commit 7babad8262
9 changed files with 2190 additions and 2199 deletions
+6 -1
View File
@@ -66,7 +66,12 @@ RequiredModules = @('..\FFU.Common\FFU.Common.psd1')
# FormatsToProcess = @()
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('FFUUI.Shared.psm1')
NestedModules = @('FFUUI.Core.Shared.psm1',
'FFUUI.Core.Drivers.psm1',
'FFUUI.Core.Drivers.Dell.psm1',
'FFUUI.Core.Drivers.HP.psm1',
'FFUUI.Core.Drivers.Lenovo.psm1',
'FFUUI.Core.Drivers.Microsoft.psm1')
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = '*'