diff --git a/.github/workflows/backend-ci-cd.yml b/.github/workflows/backend-ci-cd.yml index a3f21b5..96f6638 100644 --- a/.github/workflows/backend-ci-cd.yml +++ b/.github/workflows/backend-ci-cd.yml @@ -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 diff --git a/backend/build/Dockerfile b/backend/build/Dockerfile index 4a768c8..0fa22bb 100644 --- a/backend/build/Dockerfile +++ b/backend/build/Dockerfile @@ -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 diff --git a/backend/internal/user/handler/v1/user.go b/backend/internal/user/handler/v1/user.go index d254bfd..1886f7a 100644 --- a/backend/internal/user/handler/v1/user.go +++ b/backend/internal/user/handler/v1/user.go @@ -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 }