Skip to content

Commit

Permalink
New App: Tera Term
Browse files Browse the repository at this point in the history
  • Loading branch information
jms-du-se committed Mar 12, 2024
1 parent 4ddebfb commit 1226b90
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Evergreen/Apps/Get-TeraTerm.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Function Get-TeraTerm {
<#
.SYNOPSIS
Returns the available TeraTerm versions.
.NOTES
Author: Jasper Metselaar
E-mail: [email protected]
#>
[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/TeraTerm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"Name": "TeraTerm",
"Source": "https://teratermproject.github.io/index-en.html",

"Get": {
"Uri": "https://api.github.com/repos/TeraTermProject/teraterm/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "teraterm-.*(?<!_pdb)\\.(exe|zip)$"
},
"Install": {
"Setup": "teraterm-*.exe",
"Physical": {
"Arguments": "/VERYSILENT /NORESTART",
"PostInstall": []
},
"Virtual": {
"Arguments": "/VERYSILENT /NORESTART",
"PostInstall": []
}
}
}

0 comments on commit 1226b90

Please sign in to comment.