diff --git a/Evergreen/Apps/Get-DBBrowserforSQLite.ps1 b/Evergreen/Apps/Get-DBBrowserforSQLite.ps1 new file mode 100644 index 00000000..7a5036fc --- /dev/null +++ b/Evergreen/Apps/Get-DBBrowserforSQLite.ps1 @@ -0,0 +1,28 @@ +Function Get-DBBrowserforSQLite { + <# + .SYNOPSIS + Returns the available DB Browser for SQLite versions. + + .NOTES + Author: Jasper Metselaar + E-mail: jms@du.se + #> + [OutputType([System.Management.Automation.PSObject])] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "", Justification="Product name is a plural")] + [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 +} diff --git a/Evergreen/Manifests/DBBrowserforSQLite.json b/Evergreen/Manifests/DBBrowserforSQLite.json new file mode 100644 index 00000000..8d8cc01a --- /dev/null +++ b/Evergreen/Manifests/DBBrowserforSQLite.json @@ -0,0 +1,20 @@ +{ + "Name": "DB Browser for SQLite", + "Source": "https://sqlitebrowser.org/", + "Get": { + "Uri": "https://api.github.com/repos/sqlitebrowser/sqlitebrowser/releases/latest", + "MatchVersion": "(\\d+(\\.\\d+){1,4}).*", + "MatchFileTypes": "\\.msi$|\\.zip$|\\.exe$" + }, + "Install": { + "Setup": "DB.Browser.for.SQLite-*.msi", + "Physical": { + "Arguments": "", + "PostInstall": [] + }, + "Virtual": { + "Arguments": "", + "PostInstall": [] + } + } +}