开发者
商店的数据都通过公开 API 提供,下载走 dl.gizlet.io。
GET /v1/featured | 精选首页:hero 与分组 |
GET /v1/apps?q= | 搜索与列表 |
GET /v1/apps/github.com/{owner}/{repo} | app 详情,首次访问时自动索引 |
GET /v1/apps/github.com/{owner}/{repo}/install?target=&tier= | 为设备挑选安装包 |
GET /v1/resolve?url= | 把任意 GitHub 地址规范化 |
POST /v1/publish | CI 发布通知(GitHub OIDC) |
curl https://api.gizlet.io/v1/apps/github.com/gizlet/app-template/install?target=aarch64-unknown-linux-gnu&tier=lite
curl -LO https://dl.gizlet.io/github.com/gizlet/app-template?target=aarch64-apple-darwin发布只需要打一个 tag
用模板建仓库
在 GitHub 上用 gizlet/app-template 创建仓库,改名字、图标和代码。
推送 v0.1.0
GitHub Actions 为掌机、Linux 和 macOS 编译 .gzl 包,并创建 Release。
自动上架
CI 用 GitHub OIDC 通知商店,商店校验包的 SHA-256,并通过 Cloudflare 全球加速下载。