Skip to content

Commit 589c251

Browse files
authored
Merge pull request #138 from EUCPilots/new-apps
Add Microsoft XML Notepad
2 parents 9b29558 + 4152bc5 commit 589c251

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Apps/Get-MicrosoftXMLNotepad.ps1

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
function Get-MicrosoftXMLNotepad {
2+
<#
3+
.SYNOPSIS
4+
Returns the latest Microsoft XML Notepad version number and download.
5+
6+
.NOTES
7+
Author: Aaron Parker
8+
#>
9+
[OutputType([System.Management.Automation.PSObject])]
10+
[CmdletBinding(SupportsShouldProcess = $false)]
11+
param (
12+
[Parameter(Mandatory = $false, Position = 0)]
13+
[ValidateNotNull()]
14+
[System.Management.Automation.PSObject]
15+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
16+
)
17+
18+
# Pass the repo releases API URL and return a formatted object
19+
$params = @{
20+
Uri = $res.Get.Uri
21+
MatchVersion = $res.Get.MatchVersion
22+
Filter = $res.Get.MatchFileTypes
23+
}
24+
$object = Get-GitHubRepoRelease @params
25+
Write-Output -InputObject $object
26+
}

Manifests/MicrosoftXMLNotepad.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"Name": "Microsoft XML Notepad",
3+
"Source": "https://microsoft.github.io/XmlNotepad/",
4+
5+
"Get": {
6+
"Uri": "https://api.github.com/repos/microsoft/XmlNotepad/releases/latest",
7+
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
8+
"MatchFileTypes": "\\.zip$|\\.msixbundle$"
9+
},
10+
"Install": {
11+
"Setup": "",
12+
"Physical": {
13+
"Arguments": "",
14+
"PostInstall": []
15+
},
16+
"Virtual": {
17+
"Arguments": "",
18+
"PostInstall": []
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)