Skip to content

Commit

Permalink
SUSERancherDesktop #635
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Mar 22, 2024
1 parent 2b86788 commit 7d4b77e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Evergreen/Apps/Get-SUSERancherDesktop.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function Get-SUSERancherDesktop {
<#
.NOTES
Author: Aaron Parker
Twitter: @stealthpuppy
#>
[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
}
23 changes: 23 additions & 0 deletions Evergreen/Manifests/SUSERancherDesktop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"Name": "SUSE Rancher Desktop",
"Source": "https://rancherdesktop.io/",
"Get": {
"Uri": "https://api.github.com/repos/rancher-sandbox/rancher-desktop/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "\\.exe$|\\.msi$"
},
"Install": {
"Setup": "",
"Preinstall": "",
"Physical": {
"Arguments": "",
"PostInstall": [
]
},
"Virtual": {
"Arguments": "",
"PostInstall": [
]
}
}
}

0 comments on commit 7d4b77e

Please sign in to comment.