diff --git a/bucket/zotero6.json b/bucket/zotero6.json new file mode 100644 index 00000000000..2ab67fb9591 --- /dev/null +++ b/bucket/zotero6.json @@ -0,0 +1,46 @@ +{ + "version": "6.0.36", + "description": "Open-source reference management software to manage bibliographic data and related research materials.", + "homepage": "https://www.zotero.org/", + "license": "AGPL-3.0-only", + "notes": [ + "To register the 'zotero://' URL protocol, run:", + "$dir\\install-zotero-url-protocol.ps1", + "", + "To unregister the 'zotero://' URL protocol, run:", + "$dir\\uninstall-zotero-url-protocol.ps1" + ], + "url": "https://download.zotero.org/client/release/6.0.36/Zotero-6.0.36_setup.exe#/dl.7z", + "hash": "9fd9d3167653d2b18ec0c507b40da4ac21fc3400ca8c0a97753c4211c969736a", + "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": { + "url": "https://www.zotero.org/download/client/update/5.0.0/_/WINNT_x86-msvc/en-US/release/_/update.xml", + "xpath": "/updates/update/@appVersion" + }, + "autoupdate": { + "url": "https://download.zotero.org/client/release/$version/Zotero-$version_setup.exe#/dl.7z" + } +}