Skip to content
Merged
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: 0 additions & 1 deletion Apps/Get-GoToConnect.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<#
.NOTES
Author: Aaron Parker

#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $false)]
Expand Down
36 changes: 18 additions & 18 deletions Apps/Get-GoToMeeting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<#
.NOTES
Author: Aaron Parker

#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $false)]
Expand All @@ -13,26 +12,27 @@
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
)

# Step through each installer type
foreach ($item in $res.Get.Download.Uri.GetEnumerator()) {
# Resolve the URL to the target location
$Update = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri

# Resolve the URL to the target location
$URI = Resolve-InvokeWebRequest -Uri $res.Get.Download.Uri[$item.Key]
if ($null -ne $Update) {
$Version = [RegEx]::Match($Update, $res.Get.Update.MatchVersion).Captures.Groups[1].Value

# Match version number
try {
$Version = [RegEx]::Match($URI, $res.Get.Download.MatchVersion).Captures.Groups[1].Value
}
catch {
$Version = "Unknown"
}
if ($null -ne $Version) {
Write-Verbose -Message "$($MyInvocation.MyCommand): Found version: $Version."

foreach ($Architecture in $res.Get.Download.Uri.GetEnumerator()) {

# Build the output object; Output object to the pipeline
$PSObject = [PSCustomObject] @{
Version = $Version
Type = $item.Name
URI = $(($URI -split $res.Get.Download.Split)[0])
# Build the output object; Output object to the pipeline
$Url = $res.Get.Download.Uri[$Architecture.Key] -replace "#version", $Version
$PSObject = [PSCustomObject] @{
Version = $Version
Architecture = $Architecture.Name
Type = Get-FileType -File $Url
URI = $Url
}
Write-Output -InputObject $PSObject
}
}
Write-Output -InputObject $PSObject
}
}
3 changes: 1 addition & 2 deletions Apps/Get-GoToOpener.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<#
.NOTES
Author: Aaron Parker

#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $false)]
Expand All @@ -21,7 +20,7 @@
$Version = [RegEx]::Match($Response.ResponseUri, $res.Get.Download.MatchVersion).Captures.Groups[1].Value
}
catch {
$Version = "Unknown"
$Version = "Latest"
}

# Build the output object; Output object to the pipeline
Expand Down
13 changes: 5 additions & 8 deletions Manifests/GoToMeeting.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
"Source": "https://support.goto.com/meeting/help/install-via-msi-windows",
"Get": {
"Update": {
"Uri": ""
"Uri": "https://goto-desktop.goto.com/machine/latest.yml",
"MatchVersion": "^version:\\s(\\d+(\\.\\d+){1,4})"
},
"Download": {
"Uri": {
"Latest": "https://link.gotomeeting.com/latest-msi",
"Minimum": "https://link.gotomeeting.com/minimum-build-msi",
"Multi-build": "https://link.gotomeeting.com/latest-multi-build-msi",
"XenAppLatest": "https://link.gotomeeting.com/latest-xen-msi"
},
"MatchVersion": "(\\d+(\\.\\d+){1,3})",
"Split": "\\?"
"x64": "https://goto-desktop.goto.com/GoToSetupMachine-4.18.0-x64.msi",
"x86": "https://goto-desktop.goto.com/GoToSetupMachine-4.18.0-ia32.msi"
}
}
},
"Install": {
Expand Down
2 changes: 1 addition & 1 deletion Manifests/GoToOpener.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Uri": ""
},
"Download": {
"Uri": "https://launch.getgo.com/launcher2/latest/GoToOpenerMultiUser.msi",
"Uri": "https://meet.goto.com/openerbinaries/latest/GoToOpenerMultiUser.msi",
"MatchVersion": "(\\d+)"
}
},
Expand Down
Loading