diff --git a/bucket/tencent-docs.json b/bucket/tencent-docs.json new file mode 100644 index 0000000..b3ece8c --- /dev/null +++ b/bucket/tencent-docs.json @@ -0,0 +1,41 @@ +{ + "##": "腾讯文档", + "version": "3.1.13", + "description": "[腾讯文档] 支持多人在线编辑Word、Excel和PPT文档", + "homepage": "https://docs.qq.com", + "license": "Freeware", + "url": "https://desktop.docs.qq.com/Installer/30001/3.1.13/TencentDocs-x86_64.exe#/dl.7z", + "hash": "e0c46a252f4831926c3c399b7551dff59f8cc3d783f1cf7e44df84c26be52e00", + "architecture": { + "64bit": { + "pre_install": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"" + }, + "32bit": { + "pre_install": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-32.7z\" \"$dir\"" + } + }, + "post_install": "Remove-Item \"$dir\\`$*\" -Force -Recurse", + "shortcuts": [ + [ + "TencentDocs.exe", + "Tencent Docs" + ], + [ + "TencentDocs.exe", + "腾讯文档" + ] + ], + "checkver": { + "script": [ + "$url = 'https://docs.qq.com/rainbow/config.v2.ConfigService/PullConfigReq'", + "$payload='{\"pull_item\":{\"app_id\":\"936c3190-4a5a-4608-ac9e-d37fe33f40be\",\"group\":\"DOWNLOAD.release-note-mac\",\"envName\":\"Default\"}}'", + "$headers = @{'Content-Type' = 'application/json'}", + "$response = Invoke-RestMethod -Uri $url -Method Post -Body $payload -Headers $headers -ContentType 'application/json'", + "(($response.config.items[0].rows|ConvertFrom-Json).config|ConvertFrom-Json).version" + ], + "regex": "(\\S+)" + }, + "autoupdate": { + "url": "https://desktop.docs.qq.com/Installer/30001/$version/TencentDocs-x86_64.exe#/dl.7z" + } +}