mirror of
https://github.com/ScoopInstaller/Extras.git
synced 2026-07-30 14:25:39 +08:00
50 lines
1.9 KiB
JSON
50 lines
1.9 KiB
JSON
{
|
|
"version": "26.04-7510",
|
|
"description": "Universal document viewer",
|
|
"homepage": "https://okular.kde.org",
|
|
"license": "LGPL-2.0-only",
|
|
"notes": "If you want to get the latest development branch-based installer, please install `okular-nightly` from Versions bucket.",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://cdn.kde.org/ci-builds/graphics/okular/release-26.04/windows/okular-release_26.04-7510-windows-cl-msvc2022-x86_64.7z",
|
|
"hash": "c9c548fba1c6110888153623d5f92b0d7c4d4393175106e8393cc3789c34a18c"
|
|
}
|
|
},
|
|
"bin": "bin\\okular.exe",
|
|
"shortcuts": [
|
|
[
|
|
"bin\\okular.exe",
|
|
"Okular"
|
|
]
|
|
],
|
|
"checkver": {
|
|
"script": [
|
|
"$url = 'https://cdn.kde.org/ci-builds/graphics/okular/?C=N;O=D'",
|
|
"",
|
|
"$cont = (Invoke-WebRequest $url).Content",
|
|
"$regex = 'release-([\\d.]+)'",
|
|
"if (!($cont -match $regex)) { error \"Could not match $regex in $url\"; continue }",
|
|
"$ver = $matches[1]",
|
|
"",
|
|
"$nextUrl = \"https://cdn.kde.org/ci-builds/graphics/okular/release-$ver/windows/\"",
|
|
"$nextCont = (Invoke-WebRequest $nextUrl).Content",
|
|
"$nextRegex = \"okular-release_$ver-([\\d]+)-windows-cl-([\\w]+)-x86_64\\.7z\"",
|
|
"if (!($nextCont -match $nextRegex)) { error \"Could not match $nextRegex in $nextUrl\"; continue }",
|
|
"$build = $matches[1]",
|
|
"$lib = $matches[2]",
|
|
"Write-Output $ver-$build $lib"
|
|
],
|
|
"regex": "([\\d.-]+) (?<lib>[\\w]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://cdn.kde.org/ci-builds/graphics/okular/release-$matchHead/windows/okular-release_$version-windows-cl-$matchLib-x86_64.7z",
|
|
"hash": {
|
|
"url": "$url.sha256"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|