mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 23:03:57 +08:00
feat: support backend download jetbrains zip
This commit is contained in:
3
.github/workflows/backend-ci-cd.yml
vendored
3
.github/workflows/backend-ci-cd.yml
vendored
@@ -99,6 +99,9 @@ jobs:
|
||||
VERSION_NO_V=${{ steps.get_version.outputs.VERSION }}
|
||||
VERSION_NO_V=${VERSION_NO_V#v}
|
||||
wget -O assets/vsix/monkeycode-${VERSION_NO_V}.vsix https://baizhiyun.oss-cn-hangzhou.aliyuncs.com/monkeycode/vsix/monkeycode-${VERSION_NO_V}.vsix
|
||||
|
||||
# 下载 JetBrains 插件 (架构无关), jetbrains插件的下载地址硬编码, 后续需要修改
|
||||
wget -O assets/jetbrains/monkeycode-${VERSION_NO_V}.zip https://baizhiyun.oss-cn-hangzhou.aliyuncs.com/monkeycode/jetbrains/monkeycode-jetbrains-1.22.4.zip
|
||||
|
||||
# 下载 x86_64 SGP
|
||||
wget -O tarballs/sgp.tgz https://baizhiyun.oss-cn-hangzhou.aliyuncs.com/monkeycode/sgp/x86_64/sgp.tgz
|
||||
|
||||
@@ -27,6 +27,7 @@ WORKDIR /app
|
||||
|
||||
ADD migration ./migration
|
||||
ADD assets/vsix ./assets/vsix
|
||||
ADD assets/jetbrains ./assets/jetbrains
|
||||
|
||||
COPY --from=builder /out/main /app/main
|
||||
|
||||
|
||||
@@ -291,7 +291,7 @@ func (h *UserHandler) ZipDownload(c *web.Context) error {
|
||||
h.cacheMu.RUnlock()
|
||||
|
||||
var buf bytes.Buffer
|
||||
if err := vsix.ChangeVsixEndpoint(fmt.Sprintf("/app/assets/vsix/monkeycode-%s.zip", ver), "roo-code/package.json", h.cfg.GetBaseURL(c.Request(), s), &buf); err != nil {
|
||||
if err := vsix.ChangeVsixEndpoint(fmt.Sprintf("/app/assets/jetbrains/monkeycode-%s.zip", ver), "roo-code/package.json", h.cfg.GetBaseURL(c.Request(), s), &buf); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user