Skip to content

Commit

Permalink
Merge pull request #741 from alex-harvey-z3q/ah/740-winfsp
Browse files Browse the repository at this point in the history
[#740] Add WinFSP
  • Loading branch information
aaronparker authored Sep 22, 2024
2 parents 5cac317 + 61b40bc commit 82b4dee
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Evergreen/Apps/Get-NavimaticsWinFSP.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Function Get-WinFSP {
<#
.SYNOPSIS
Get the current version and download URL for WinSFP.
.NOTES
Site: https://winfsp.dev/rel/
Author: Alex Harvey
GitHub: @alex-harvey-z3q
#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $False)]
param (
[Parameter(Mandatory = $False, Position = 0)]
[ValidateNotNull()]
[System.Management.Automation.PSObject]
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
)

# Pass the repo releases API URL and return a formatted object
$params = @{
Uri = $res.Get.Uri
MatchVersion = $res.Get.MatchVersion
Filter = $res.Get.MatchFileTypes
}
$object = Get-GitHubRepoRelease @params
Write-Output -InputObject $object
}
20 changes: 20 additions & 0 deletions Evergreen/Manifests/NavimaticsWinFSP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Name": "WinFSP",
"Source": "https://winfsp.dev/rel/",
"Get": {
"Uri": "https://api.github.com/repos/winfsp/winfsp/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "\\.msi$"
},
"Install": {
"Setup": "winfsp-*.msi",
"Physical": {
"Arguments": "",
"PostInstall": []
},
"Virtual": {
"Arguments": "",
"PostInstall": []
}
}
}

0 comments on commit 82b4dee

Please sign in to comment.