mirror of
https://github.com/ScoopInstaller/Extras.git
synced 2026-07-31 11:27:35 +08:00
65 lines
2.6 KiB
JSON
65 lines
2.6 KiB
JSON
{
|
|
"version": "9.0.6",
|
|
"description": "Open-source reference management software to manage bibliographic data and related research materials.",
|
|
"homepage": "https://www.zotero.org/",
|
|
"license": "AGPL-3.0-only",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://download.zotero.org/client/release/9.0.6/Zotero-9.0.6_x64_setup.exe#/dl.7z",
|
|
"hash": "973bfc96a7af8b2949bbfdc46b220366b2b204942ac30d50aef9835eb152d31c"
|
|
},
|
|
"32bit": {
|
|
"url": "https://download.zotero.org/client/release/9.0.6/Zotero-9.0.6_win32_setup.exe#/dl.7z",
|
|
"hash": "a95c7e3d570d495f7f90f7d79dd1aa6079a71b72ba11a65502e883c622d71d44"
|
|
},
|
|
"arm64": {
|
|
"url": "https://download.zotero.org/client/release/9.0.6/Zotero-9.0.6_arm64_setup.exe#/dl.7z",
|
|
"hash": "afa25c244f64c21241ccc21e9523faa426d50a7854d6c01f169ea2acb0977620"
|
|
}
|
|
},
|
|
"extract_dir": "core",
|
|
"bin": "zotero.exe",
|
|
"shortcuts": [
|
|
[
|
|
"zotero.exe",
|
|
"Zotero"
|
|
]
|
|
],
|
|
"post_install": [
|
|
"$scriptsDir = \"$bucketsdir\\extras\\scripts\"",
|
|
"Get-ChildItem \"$scriptsDir\\zotero\\*.ps1\" | ForEach-Object {",
|
|
" $content = Get-Content $_",
|
|
" $content = $content.Replace('REPLACE_HERE', $dir)",
|
|
" if ($global) { $content = $content.Replace('HKCU', 'HKLM') }",
|
|
" Set-Content \"$dir\\$($_.Name)\" $content -Encoding 'utf8' -Force",
|
|
"}"
|
|
],
|
|
"pre_uninstall": [
|
|
"if ($cmd -eq 'uninstall') {",
|
|
" Write-Host 'Unregistering the ''zotero://'' URL protocol...'",
|
|
" Remove-Item 'HKCU:\\SOFTWARE\\Classes\\zotero', 'HKLM:\\SOFTWARE\\Classes\\zotero' -ErrorAction 'SilentlyContinue' -Recurse -Force",
|
|
" Write-Host 'Done!'",
|
|
"}"
|
|
],
|
|
"checkver": {
|
|
"script": [
|
|
"try { $detail = Invoke-WebRequest 'https://www.zotero.org/download/client/dl?channel=release&platform=win-x64' -MaximumRedirection 0 -ErrorAction Ignore } catch { $_.Exception.Response }",
|
|
"return $detail.Headers.Location"
|
|
],
|
|
"regex": "Zotero-([\\d.]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://download.zotero.org/client/release/$version/Zotero-$version_x64_setup.exe#/dl.7z"
|
|
},
|
|
"32bit": {
|
|
"url": "https://download.zotero.org/client/release/$version/Zotero-$version_win32_setup.exe#/dl.7z"
|
|
},
|
|
"arm64": {
|
|
"url": "https://download.zotero.org/client/release/$version/Zotero-$version_arm64_setup.exe#/dl.7z"
|
|
}
|
|
}
|
|
}
|
|
}
|