Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持从链接或二维码导入整合包 #4

Open
shigma opened this issue Aug 24, 2022 · 0 comments
Open

支持从链接或二维码导入整合包 #4

shigma opened this issue Aug 24, 2022 · 0 comments

Comments

@shigma
Copy link
Member

shigma commented Aug 24, 2022

为了方便整合包的分发,需要支持链接的插值。可用插值包括

  • platform=linux
  • arch=arm64
  • node=node16(跟随当前版本)

示例:

https://github.com/koishijs/boilerplate/releases/download/v1.0.5/boilerplate-v1.0.5-{platform}-{arch}-{node}.zip

收到链接后首先进行插值,然后直接下载。如果失败给出提示,否则记录链接并下载整合包。

二维码则直接对应上述链接。

另一个方案:将上述逻辑更改为 *,下载前直接将链接中的 * 替换为 {platform}-{arch}-{node}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant