Skip to content

Commit

Permalink
hardcode catalog urls (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
w0 authored Feb 7, 2024
1 parent eccb71d commit d37431e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion source/OpenDriverTool.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'OpenDriverTool.psm1'

# Version number of this module.
ModuleVersion = '0.4.0'
ModuleVersion = '0.4.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
14 changes: 6 additions & 8 deletions source/public/Update-DellBios.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ function Update-DellBios {
"Updating Bios for Dell $Model" | Log

Path-Creator -Parent $WorkingDir -Child 'Content' | Out-Null

$DellCatalog = Get-DellCatalog

$DriverPackCatalogUrl = $DellCatalog.Where( {$_.Filename -eq 'DriverPackCatalog.CAB'}, 'First' )
$CatalogPCUrl = $DellCatalog.Where( { $_.Filename -eq 'CatalogPC.cab'}, 'First' )
$DriverPackCatalogUrl = 'https://downloads.dell.com/catalog/DriverPackCatalog.CAB'
$CatalogPCUrl = 'https://downloads.dell.com/catalog/CatalogPC.cab'


' Getting Dell cabinet files...' | Log
' Downloading: {0}' -f $DriverPackCatalogUrl.Url | Log
$DriverPackCatalogCAB = $DriverPackCatalogUrl.Url | Get-RemoteFile -Destination $WorkingDir
' Downloading: {0}' -f $DriverPackCatalogUrl | Log
$DriverPackCatalogCAB = $DriverPackCatalogUrl | Get-RemoteFile -Destination $WorkingDir

' Downloading: {0}' -f $CatalogPCUrl.Url | Log
$CatalogPCCAB = $CatalogPCUrl.Url | Get-RemoteFile -Destination $WorkingDir
' Downloading: {0}' -f $CatalogPCUrl | Log
$CatalogPCCAB = $CatalogPCUrl | Get-RemoteFile -Destination $WorkingDir

Expand-Cab -Path $DriverPackCatalogCAB -Destination $WorkingDir\Content
Expand-Cab -Path $CatalogPCCAB -Destination $WorkingDir\Content
Expand Down
8 changes: 3 additions & 5 deletions source/public/Update-DellDriver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,12 @@ function Update-DellDriver {
"Updating drivers for Dell $Model" | Log

Path-Creator -Parent $WorkingDir -Child 'Content' | Out-Null

$DellCatalog = Get-DellCatalog

$DriverPackCatalogUrl = $DellCatalog.Where( {$_.Filename -eq 'DriverPackCatalog.CAB'}, 'First' )
$DriverPackCatalogUrl = 'https://downloads.dell.com/catalog/DriverPackCatalog.CAB'

' Getting Dell cabinet files...' | Log
' Downloading: {0}' -f $DriverPackCatalogUrl.Url | Log
$DriverPackCatalogCAB = $DriverPackCatalogUrl.Url | Get-RemoteFile -Destination $WorkingDir
' Downloading: {0}' -f $DriverPackCatalogUrl | Log
$DriverPackCatalogCAB = $DriverPackCatalogUrl | Get-RemoteFile -Destination $WorkingDir

Expand-Cab -Path $DriverPackCatalogCAB -Destination $WorkingDir\Content

Expand Down

0 comments on commit d37431e

Please sign in to comment.