Apps/Get-FujifilmXWebcam.ps1

1
2
3
4
5
6
7
8
9
10
11
12
try {

    $Version = Get-Version -Uri 'https://fujifilm-x.com/en-gb/support/download/software/x-webcam/' -Pattern 'Windows Version: (?:Ver\.)?((?:\d+\.)+\d+)'

    $URL = Get-Link -Uri 'https://fujifilm-x.com/en-gb/support/download/software/x-webcam/' -MatchProperty href -Pattern '\.zip$'

    New-NevergreenApp -Name 'Fujifilm X Webcam' -Version $Version -Uri $URL -Architecture 'x64' -Type 'Zip'

}
catch {
    Write-Error "$($MyInvocation.MyCommand): $($_.Exception.Message)"
}