{ "version": "141.0.6089.56", "description": "Opera GX is a special version of the Opera browser built specifically for gamers.", "homepage": "https://www.opera.com/gx", "license": { "identifier": "Freeware", "url": "https://www.opera.com/eula/computers" }, "architecture": { "64bit": { "url": "https://get.opera.com/pub/opera_gx/141.0.6089.56/win/Opera_GX_141.0.6089.56_Setup_x64.exe", "hash": "25e6bf23db7fd14455dc0ac89a42bf72aefd998d7c3e75db2afcfb8b8725b47b" }, "32bit": { "url": "https://get.opera.com/pub/opera_gx/141.0.6089.56/win/Opera_GX_141.0.6089.56_Setup.exe", "hash": "d2886d79a62191bea9b07dfc361d0ff65d310ef99c633e6c670b266eead9678a" } }, "installer": { "script": [ "$version, 'autoupdate' | ForEach-Object { ensure \"$dir\\$_\" | Out-Null }", "Expand-7zipArchive -Path \"$dir\\$fname\" -Switches '-x!*_list -xr!unins*' -Removal", "Move-Item -Path \"$dir\\opera_autoupdate*\" -Destination \"$dir\\autoupdate\" -Force", "$exclude_list = @('Assets', $version, 'autoupdate', 'Resources.pri', 'opera.visualelementsmanifest.xml')", "Move-Item -Path \"$dir\\*\" -Destination \"$dir\\$version\" -Exclude $exclude_list -Force -ErrorAction SilentlyContinue", "Copy-Item -Path \"$dir\\$version\\opera.exe\" -Destination $dir -Force", "$cfg = @{ 'autoupdate' = $false; 'enable_stats' = $false; 'single_profile' = $true } | ConvertTo-Json -Depth 5 -Compress", "Set-Content -Path \"$dir\\installer_prefs.json\" -Value $cfg -NoNewline -Encoding utf8" ] }, "shortcuts": [ [ "opera.exe", "Opera GX" ] ], "persist": "profile", "checkver": { "script": [ "$path_regex = '^(?!\\.)[\\d.]+/$'", "$version_sort = { [version]$_.href.TrimEnd('/') }", "$releases_url = 'https://get.opera.com/pub/opera_gx/'", "$releases_page = Invoke-WebRequest -Uri $releases_url -UseBasicParsing -ErrorAction Stop", "$path_segments = $releases_page.links | Where-Object { $_.href -match $path_regex } |", " Sort-Object -Property $version_sort -Descending | ForEach-Object -MemberName href", "foreach ($path_segment in $path_segments.TrimEnd('/')) {", " $release_url = 'https://get.opera.com/pub/opera_gx/{0}/win/' -f $path_segment", " $download_page = Invoke-WebRequest -Uri $release_url -UseBasicParsing -ErrorAction Stop", " $installer_name = $download_page.Links | Where-Object { $_.href -match '(?<=Setup\\w+)\\.exe$' } |", " Select-Object -ExpandProperty href -First 1", " if ($null -ne $installer_name) { Write-Output $installer_name; break }", "}" ], "regex": "Opera_GX_([\\d.]+)_Setup" }, "autoupdate": { "architecture": { "64bit": { "url": "https://get.opera.com/pub/opera_gx/$version/win/Opera_GX_$version_Setup_x64.exe" }, "32bit": { "url": "https://get.opera.com/pub/opera_gx/$version/win/Opera_GX_$version_Setup.exe" } }, "hash": { "url": "$url.sha256sum" } } }