mirror of
https://github.com/ScoopInstaller/Extras.git
synced 2026-08-01 07:02:18 +08:00
57 lines
2.0 KiB
JSON
57 lines
2.0 KiB
JSON
{
|
|
"version": "3.6.1",
|
|
"description": "PDF and eBook reader",
|
|
"homepage": "https://www.sumatrapdfreader.org/free-pdf-reader",
|
|
"license": "GPL-3.0-only,BSD-2-Clause",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/3.6.1/SumatraPDF-3.6.1-64.zip",
|
|
"hash": "98b33a518d42986856d225064b0cd2d3643ecf78cbf84ab873d26cc51877a544"
|
|
},
|
|
"32bit": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/3.6.1/SumatraPDF-3.6.1.zip",
|
|
"hash": "670e694a5c91633d28ab0df689b4dbf92021183cfe82270ae552cb617a0a07ed"
|
|
},
|
|
"arm64": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/3.6.1/SumatraPDF-3.6.1-arm64.zip",
|
|
"hash": "f21091ca6741e4049b0ca375121708a7959803d39336f0468084808943667ffe"
|
|
}
|
|
},
|
|
"pre_install": [
|
|
"$file = 'SumatraPDF-settings.txt'",
|
|
"if (!(Test-Path \"$persist_dir\\$file\")) {",
|
|
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
|
|
" Set-Content \"$dir\\$file\" 'CheckForUpdates = false' -Encoding Ascii",
|
|
"}",
|
|
"Get-ChildItem \"$dir\\SumatraPDF-*.exe\" | Rename-Item -NewName 'SumatraPDF.exe'"
|
|
],
|
|
"bin": "SumatraPDF.exe",
|
|
"shortcuts": [
|
|
[
|
|
"SumatraPDF.exe",
|
|
"SumatraPDF"
|
|
]
|
|
],
|
|
"persist": [
|
|
"SumatraPDF-settings.txt",
|
|
"sumatrapdfcache"
|
|
],
|
|
"checkver": {
|
|
"url": "https://www.sumatrapdfreader.org/docs/Version-history",
|
|
"regex": "([\\d.]+)\\s+\\(\\d+"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/$version/SumatraPDF-$version-64.zip"
|
|
},
|
|
"32bit": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/$version/SumatraPDF-$version.zip"
|
|
},
|
|
"arm64": {
|
|
"url": "https://www.sumatrapdfreader.org/dl/rel/$version/SumatraPDF-$version-arm64.zip"
|
|
}
|
|
}
|
|
}
|
|
}
|