Skip to content

Tester: cache zotero installer and program files #126

@northword

Description

@northword

zotero/client-downloads repo

### manifests/{release,beta,dev}/updates-{mac,win32,win-x64,win-arm64,linux-i686,linux-x86_64}.json

[
  {
    "major": null,
    "version": "5.0-beta.209+98544edde",
    "detailsURL": "https://www.zotero.org/support/5.0_changelog",
    "buildID": "20170608144058"
  }
]

Base uri is https://www.zotero.org/download/client/.

For request:

GET https://www.zotero.org/download/client/manifests/beta/updates-win-x64.json

Response:

[
  {
    "version": "7.1-beta.35+03b33d995",
    "buildID": "20250503055820",
    "detailsURL": "https://www.zotero.org/support/7.1_changelog",
    "major": null
  },
  {
    "version": "7.1-beta.36+1eacc8bbd",
    "buildID": "20250510044543",
    "detailsURL": "https://www.zotero.org/support/7.1_changelog",
    "major": null
  },
  {
    "version": "7.1-beta.37+e50787c94",
    "buildID": "20250611052747",
    "detailsURL": "https://www.zotero.org/support/7.1_changelog",
    "major": null
  },
  {
    "version": "7.1-beta.38+408f1274f",
    "buildID": "20250614052306",
    "detailsURL": "https://www.zotero.org/support/7.1_changelog",
    "major": null
  },
  {
    "version": "7.1-beta.39+0acfcd3f9",
    "buildID": "20250619110523",
    "detailsURL": "https://www.zotero.org/support/7.1_changelog",
    "major": null
  }
]

我们可以先请求此链接获取最新版本的版本号和 buildID,并以 zotero-{{arch}}-{{version}}-{{buildID}} 为 cache key,对安装包和解压后的文件进行缓存。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions