{ "version": "141.0.6089.55", "description": "A fast, secure, easy-to-use browser.", "homepage": "https://www.opera.com", "license": { "identifier": "Freeware", "url": "https://www.opera.com/eula/computers" }, "architecture": { "64bit": { "url": "https://get.geo.opera.com/pub/opera/desktop/141.0.6089.55/win/Opera_141.0.6089.55_Setup_x64.exe", "hash": "81dfe1abdc28edebfcf37bddb506345345f9af7d8e72bc14087c428401f347a0" }, "32bit": { "url": "https://get.geo.opera.com/pub/opera/desktop/141.0.6089.55/win/Opera_141.0.6089.55_Setup.exe", "hash": "b1a4797a935022b472dceacfb06bc56565d028251dc6d6e84856ec1aeb02224f" }, "arm64": { "url": "https://get.geo.opera.com/pub/opera/desktop/141.0.6089.55/win/Opera_141.0.6089.55_Setup_arm64.exe", "hash": "518d81662b79bacbbbbc71c9da02e9c82cc3a73a857b31bbbb9d2427f904c16c" } }, "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" ] ], "persist": "profile", "checkver": { "script": [ "$path_regex = '^(?!\\.)[\\d.]+/$'", "$version_sort = { [version]$_.href.TrimEnd('/') }", "$releases_url = 'https://get.geo.opera.com/pub/opera/desktop/'", "$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.geo.opera.com/pub/opera/desktop/{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_([\\d.]+)_Setup" }, "autoupdate": { "architecture": { "64bit": { "url": "https://get.geo.opera.com/pub/opera/desktop/$version/win/Opera_$version_Setup_x64.exe" }, "32bit": { "url": "https://get.geo.opera.com/pub/opera/desktop/$version/win/Opera_$version_Setup.exe" }, "arm64": { "url": "https://get.geo.opera.com/pub/opera/desktop/$version/win/Opera_$version_Setup_arm64.exe" } }, "hash": { "url": "$url.sha256sum" } } }