Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apps #636

Merged
merged 6 commits into from
Mar 11, 2024
Merged

Apps #636

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Evergreen/Apps/Get-AdobeDigitalEditions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Function Get-AdobeDigitalEditions {
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)]
Expand Down
1 change: 0 additions & 1 deletion Evergreen/Apps/Get-CitrixShareFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.NOTES
Author: Tschuegy
Twitter:
#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $false)]
Expand Down
2 changes: 1 addition & 1 deletion Evergreen/Apps/Get-ClarivateEndnote.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Get-ClarivateEndNote {
Write-Verbose -Message "$($MyInvocation.MyCommand): Download URL: $($res.Get.Download.Uri.$Release)"

# Query the EndNote update API
$UpdateFeed = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri.($Release)
$UpdateFeed = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri.($Release)
if ($null -ne $UpdateFeed) {

# Sort the updates to find the latest
Expand Down
31 changes: 31 additions & 0 deletions Evergreen/Apps/Get-KubernetesKubectl.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
function Get-KubernetesKubectl {
<#
.SYNOPSIS
Returns the available Kubernetes Kubectl versions.

.NOTES
Author: BornToBeRoot
Twitter: @_BornToBeRoot
#>
[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])
)

# Get the latest version for kubectl
$Version = Invoke-RestMethod -Uri $res.Get.Update.Uri

# Build the download links for each platform & architecture
foreach ($DownloadUri in $res.Get.Download.Uri.GetEnumerator()) {
[PSCustomObject] @{
Version = $Version
Architecture = $DownloadUri.Name.Split("_")[1]
Platform = $DownloadUri.Name.Split("_")[0]
URI = $DownloadUri.Value -replace $res.Get.Download.ReplaceVersionText, $Version
}
}
}
26 changes: 26 additions & 0 deletions Evergreen/Apps/Get-ProtonVPN.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function Get-ProtonVPN {
<#
.SYNOPSIS
Returns the latest ProtonVPN 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
}
30 changes: 30 additions & 0 deletions Evergreen/Manifests/KubernetesKubectl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Name": "Kubernetes Kubectl",
"Source": "https://kubernetes.io/",
"Get": {
"Update": {
"Uri": "https://cdn.dl.k8s.io/release/stable.txt"
},
"Download": {
"Uri": {
"Windows_x64": "https://dl.k8s.io/release/#version/bin/windows/amd64/kubectl.exe",
"Windows_x86": "https://dl.k8s.io/release/#version/bin/windows/386/kubectl.exe",
"Windows_arm64": "https://dl.k8s.io/release/#version/bin/windows/arm64/kubectl.exe"
},
"ReplaceVersionText": "#version"
}
},
"Install": {
"Setup": {
"Windows": "kubectl.exe"
},
"Physical": {
"Arguments": "",
"PostInstall": []
},
"Virtual": {
"Arguments": "",
"PostInstall": []
}
}
}
6 changes: 3 additions & 3 deletions Evergreen/Manifests/MicrosoftODBCDriverForSQLServer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
},
"Download": {
"Uri": [
"https://go.microsoft.com/fwlink/?linkid=2242886",
"https://go.microsoft.com/fwlink/?linkid=2242980",
"https://go.microsoft.com/fwlink/?linkid=2243268"
"https://go.microsoft.com/fwlink/?linkid=2249006",
"https://go.microsoft.com/fwlink/?linkid=2249005",
"https://go.microsoft.com/fwlink/?linkid=2248720"
],
"MaximumRedirection": 3,
"DatePattern": "d/M/yyyy"
Expand Down
6 changes: 3 additions & 3 deletions Evergreen/Manifests/MicrosoftOLEDBDriverForSQLServer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
},
"Download": {
"Uri": [
"https://go.microsoft.com/fwlink/?linkid=2238602",
"https://go.microsoft.com/fwlink/?linkid=2238512",
"https://go.microsoft.com/fwlink/?linkid=2238411"
"https://go.microsoft.com/fwlink/?linkid=2248728",
"https://go.microsoft.com/fwlink/?linkid=2249102",
"https://go.microsoft.com/fwlink/?linkid=2249103"
],
"MaximumRedirection": 3,
"DatePattern": "d/M/yyyy"
Expand Down
24 changes: 24 additions & 0 deletions Evergreen/Manifests/ProtonVPN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Name": "ProtonVPN",
"Source": "https://protonvpn.com/",
"Get": {
"Uri": "https://api.github.com/repos/ProtonVPN/win-app/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "\\.exe$"
},
"Install": {
"Setup": "ProtonVPN*.exe",
"Physical": {
"Arguments": "/exenoui /exelog C:\\Windows\\Temp\\ProtonVPN.log /qn /exenoupdates",
"PostInstall": [
"TASKKILL /F /IM ProtonVPN.exe"
]
},
"Virtual": {
"Arguments": "/exenoui /exelog C:\\Windows\\Temp\\ProtonVPN.log /qn /exenoupdates",
"PostInstall": [
"TASKKILL /F /IM ProtonVPN.exe"
]
}
}
}
Loading