Skip to content

Commit 3dec74d

Browse files
authored
Merge pull request #713 from aaronparker/apps
Apps
2 parents 80eda24 + 58722e0 commit 3dec74d

27 files changed

+446
-114
lines changed
File renamed without changes.
File renamed without changes.

Evergreen/Apps/Get-AkeoRufusAlt.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Get-AkeoRufusAlt {
1818
$UpdateFeedLines = $UpdateFeed -split "`n"
1919

2020
# Match the version number
21-
$Version = (($UpdateFeedLines | Select-String -Pattern "version").Line -split "=")[-1].Trim()
21+
$Version = (($UpdateFeedLines | Select-String -Pattern "^version" -CaseSensitive).Line -split "=")[-1].Trim()
2222

2323
# For each architecture, match the download URL and return to the pipeline
2424
foreach ($Architecture in $res.Get.Update.Architectures.GetEnumerator()) {

Evergreen/Apps/Get-AmazonCorretto.ps1

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto11 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto15 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto16 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto17 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto20 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto21 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto22 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
function Get-AmazonCorretto8 {
2+
<#
3+
.NOTES
4+
Author: Aaron Parker
5+
Twitter: @stealthpuppy
6+
#>
7+
[OutputType([System.Management.Automation.PSObject])]
8+
[CmdletBinding(SupportsShouldProcess = $false)]
9+
param (
10+
[Parameter(Mandatory = $false, Position = 0)]
11+
[ValidateNotNull()]
12+
[System.Management.Automation.PSObject]
13+
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
14+
)
15+
16+
# Get the latest download
17+
$Object = Get-AmazonCorretto -res $res
18+
Write-Output -InputObject $Object
19+
}

Evergreen/Apps/Get-AtlassianSourcetree.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ Function Get-AtlassianSourcetree {
3838
ForEach ($item in $res.Get.Download.Uri.GetEnumerator()) {
3939

4040
# Build the output object; Output object to the pipeline
41+
$Url = $res.Get.Download.Uri[$item.Key] -replace $res.Get.Download.ReplaceText, $Version
4142
$PSObject = [PSCustomObject] @{
4243
Version = $Version
43-
Type = $item.Name
44-
URI = $res.Get.Download.Uri[$item.Key] -replace $res.Get.Download.ReplaceText, $Version
44+
Type = Get-FileType -File $Url
45+
URI = $Url
4546
}
4647
Write-Output -InputObject $PSObject
4748
}

Evergreen/Apps/Get-AutodeskFusion360.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Function Get-AutodeskFusion360 {
2525
# Build object and output to the pipeline
2626
$PSObject = [PSCustomObject] @{
2727
Version = $Versions.'build-version'
28-
BuildVersion = $Versions.'build-version'
29-
MajorBuildVersion = $Versions.'major-update-version'
28+
#BuildVersion = $Versions.'build-version'
29+
#MajorBuildVersion = $Versions.'major-update-version'
3030
Type = Get-FileType -File $Url
3131
Filename = (Split-Path -Path $Url -Leaf).Replace('%20', ' ')
3232
URI = $Url

Evergreen/Apps/Get-JabraDirect.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Function Get-JabraDirect {
2323
$PSObject = [PSCustomObject] @{
2424
Version = $Content.WindowsVersion
2525
Architecture = "x64"
26-
ReleaseNotes = $Content.WindowsReleaseNotes
2726
Type = Get-FileType -File $Content.WindowsDownload
2827
Sha256 = $Content.WindowsSHA256
2928
URI = $Content.WindowsDownload

Evergreen/Apps/Get-PiriformCCleanerFree.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ Function Get-PiriformCCleanerFree {
2727
if ($null -ne $Update) {
2828

2929
# Grab the download link headers to find the file name
30-
$params = @{
31-
Uri = $res.Get.Download.Uri
32-
Method = "Head"
33-
ReturnObject = "Headers"
34-
}
35-
$Headers = Invoke-EvergreenWebRequest @params
36-
$Filename = [RegEx]::Match($Headers['Content-Disposition'], $res.Get.Download.MatchFilename).Captures.Groups[1].Value
30+
# $params = @{
31+
# Uri = $res.Get.Download.Uri
32+
# Method = "Head"
33+
# ReturnObject = "Headers"
34+
# }
35+
# $Headers = Invoke-EvergreenWebRequest @params
36+
# $Filename = [RegEx]::Match($Headers['Content-Disposition'], $res.Get.Download.MatchFilename).Captures.Groups[1].Value
3737

3838
$PSObject = [PSCustomObject] @{
3939
Version = ($Update -split "\|")[2]
40-
Filename = $Filename
40+
Filename = (Split-Path -Path $($Update -split "\|")[-2] -Leaf)
4141
URI = $res.Get.Download.Uri
4242
}
4343
Write-Output -InputObject $PSObject

Evergreen/Manifests/AmazonCorretto.json

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Name": "Amazon Corretto 11",
3+
"Source": "https://aws.amazon.com/corretto/",
4+
"Get": {
5+
"Update": {
6+
"Uri": ""
7+
},
8+
"Download": {
9+
"Uri": [
10+
"https://corretto.aws/downloads/latest/amazon-corretto-11-x64-windows-jdk.msi",
11+
"https://corretto.aws/downloads/latest/amazon-corretto-11-x86-windows-jdk.msi",
12+
"https://corretto.aws/downloads/latest/amazon-corretto-11-x64-windows-jdk.zip",
13+
"https://corretto.aws/downloads/latest/amazon-corretto-11-x86-windows-jdk.zip"
14+
],
15+
"Property": "ResponseUri.Headers.Location",
16+
"MatchVersion": "(\\d+(\\.\\d+){1,4})"
17+
}
18+
},
19+
"Install": {
20+
"Setup": "amazon-corretto-*.msi",
21+
"Physical": {
22+
"Arguments": "/install /passive /norestart",
23+
"PostInstall": []
24+
},
25+
"Virtual": {
26+
"Arguments": "/install /passive /norestart",
27+
"PostInstall": []
28+
}
29+
}
30+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"Name": "Amazon Corretto 15",
3+
"Source": "https://aws.amazon.com/corretto/",
4+
"Get": {
5+
"Update": {
6+
"Uri": ""
7+
},
8+
"Download": {
9+
"Uri": [
10+
"https://corretto.aws/downloads/latest/amazon-corretto-15-x64-windows-jdk.msi",
11+
"https://corretto.aws/downloads/latest/amazon-corretto-15-x64-windows-jdk.zip"
12+
],
13+
"Property": "ResponseUri.Headers.Location",
14+
"MatchVersion": "(\\d+(\\.\\d+){1,4})"
15+
}
16+
},
17+
"Install": {
18+
"Setup": "amazon-corretto-*.msi",
19+
"Physical": {
20+
"Arguments": "/install /passive /norestart",
21+
"PostInstall": []
22+
},
23+
"Virtual": {
24+
"Arguments": "/install /passive /norestart",
25+
"PostInstall": []
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)