Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Feb 22, 2025
1 parent 9340dc0 commit e5b1dd3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Evergreen/Apps/Get-MarkMpnSQL4CDS.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function Get-MarkMpnSQL4CDS {
<#
.SYNOPSIS
Returns Mark Carrington's latest MarkMpn SQL 4 CDS version number and download.
.NOTES
Author: Adrian Scott
#>
[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
}
21 changes: 21 additions & 0 deletions Evergreen/Manifests/MarkMpnSQL4CDS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Name": "MarkMpn SQL 4 CDS",
"Source": "https://markcarrington.azurewebsites.net/sql-4-cds/sql-4-cds-ssms-edition/",
"Get": {
"Uri": "https://api.github.com/repos/MarkMpn/Sql4Cds/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "\\.msi$"
},
"Install": {
"Setup": " MarkMpn.Sql4Cds.SSMS.20.Setup.msi",
"Preinstall": "",
"Physical": {
"Arguments": "/quiet",
"PostInstall": []
},
"Virtual": {
"Arguments": "/quiet",
"PostInstall": []
}
}
}

0 comments on commit e5b1dd3

Please sign in to comment.