/
opera-gx.json
61 lines (61 loc) 路 2.6 KB
/
opera-gx.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"version": "109.0.5097.70",
"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/109.0.5097.70/win/Opera_GX_109.0.5097.70_Setup_x64.exe#/dl.7z",
"hash": "e67edc3e46d6d9001cb53e5d0489dddf4a1ae228e948e5c416b40cf3f49f72a4"
},
"32bit": {
"url": "https://get.opera.com/pub/opera_gx/109.0.5097.70/win/Opera_GX_109.0.5097.70_Setup.exe#/dl.7z",
"hash": "e77d31b444717578379e51e0e3eed736ca12953d2e36edf731a90cbc92eb3b88"
}
},
"installer": {
"script": [
"Remove-Item -Path \"$dir\\*_list\" -Force",
"Move-Item -Path \"$dir\\*\" -Destination \"$dir\\$version\" -Exclude 'Assets', 'launcher*', 'Resources.pri' -ErrorAction Ignore",
"if (!(Test-Path \"$dir\\$version\\localization\")) {",
" New-Item -Path \"$dir\\$version\\localization\" -ItemType Directory | Out-Null",
" Move-Item -Path \"$dir\\$version\\*.pak\" -Destination \"$dir\\$version\\localization\" -Exclude 'opera*' -ErrorAction Ignore",
"}",
"Set-Content -Path \"$dir\\installer_prefs.json\" -Value (@{ 'autoupdate'= $false; 'enable_stats' = $false; 'single_profile' = $true } | ConvertTo-Json) -Encoding ASCII"
]
},
"shortcuts": [
[
"launcher.exe",
"Opera GX"
]
],
"persist": "profile",
"checkver": {
"script": [
"$releases = 'https://get.opera.com/pub/opera_gx/'",
"$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing",
"$versionSort = { [version]$_.href.TrimEnd('/') }",
"$last_ver = $download_page.links | Where-Object href -match '^[\\d]+[\\d\\.]+/$' | Sort-Object $versionSort -Descending | Select-Object -first 1 -expand href",
"$version = $last_ver -replace '/', ''",
"Write-Output $version"
],
"regex": "(\\S+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://get.opera.com/pub/opera_gx/$version/win/Opera_GX_$version_Setup_x64.exe#/dl.7z"
},
"32bit": {
"url": "https://get.opera.com/pub/opera_gx/$version/win/Opera_GX_$version_Setup.exe#/dl.7z"
}
},
"hash": {
"url": "$url.sha256sum"
}
}
}