feat: support self-update via pi-web update - #441
Closed
Jyleaves wants to merge 1 commit into
Closed
Conversation
Owner
|
当前实现仍有几个问题 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
中文
支持
pi-web update直接自更新,无需再手动执行npm install -g @agegr/pi-web。pi-web update子命令:检查 npm registry 中的新版本,并用安装 pi-web 时所用的包管理器(npm、pnpm、yarn 或 bun)重新全局安装npx运行时,pi-web update会将最新版本全局安装到本机lib/app-update.ts的稳定版语义(预发布版本不触发更新)bin/pi-web-update.test.mjs单元测试,并纳入npm test注:
README.ja.md/README.ru.md为社区翻译,欢迎补充对应段落。English
Adds a
pi-web updatecommand so users can self-update without runningnpm install -g @agegr/pi-webmanually.pi-web updatechecks the npm registry for a newer release and reinstalls pi-web globally with the package manager that installed it (npm, pnpm, yarn, or bun)npx, the update installs the latest version globallylib/app-update.ts(prereleases never trigger an update)bin/pi-web-update.test.mjsunit tests, wired intonpm testNote:
README.ja.md/README.ru.mdare community translations; updates welcome.