Skip to content

Commit

Permalink
Merge pull request #617 from jms-du-se/DB-Browser-for-SQLite
Browse files Browse the repository at this point in the history
New Application: DB Browser for SQLite
  • Loading branch information
aaronparker authored Feb 10, 2024
2 parents 1d72315 + a4f884e commit 28f5349
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-DBBrowserforSQLite.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Function Get-DBBrowserforSQLite {
<#
.SYNOPSIS
Returns the available DB Browser for SQLite versions.
.NOTES
Author: Jasper Metselaar
E-mail: [email protected]
#>
[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
}
20 changes: 20 additions & 0 deletions Evergreen/Manifests/DBBrowserforSQLite.json
Original file line number Diff line number Diff line change
@@ -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": []
}
}
}

0 comments on commit 28f5349

Please sign in to comment.