mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-08-12 09:20:31 +00:00
1.0 KiB
1.0 KiB
Microsoft Store PWA 上架流程
仓库内自动化
- 在 GitHub Actions 手动运行
PWA Store Build。 - 确认
production_url是最终公开 HTTPS 地址,例如https://cs.houlang.cloud/。 - workflow 会执行
pnpm run build:store,生成并校验dist/manifest.webmanifest、dist/sw.js、图标和 HTML PWA hint。 - 下载
classworks-pwa-dist和microsoft-store-handoffartifacts,作为 PWABuilder 或 Partner Center 提交前的构建记录。
提交到 Microsoft Store
- 确保生产站点已部署最新构建,并可通过 HTTPS 访问。
- 使用 PWABuilder 或 Microsoft Partner Center 指向生产 URL。
- 填写商店资料:应用分类、年龄分级、隐私政策、支持链接、截图和发布者信息。
- 如果 manifest、图标、service worker 或公开资源有变更,重新运行
PWA Store Build。
本地校验
pnpm run build:store
该命令会先刷新音频资源清单,再构建 Vite 应用,最后执行 PWA 构建校验。