feat(updater): add GitCode fallback for GUI and CLIProxyAPI core releases

- split GitCode repositories into GUI and core build variables
- query GitCode latest release when GitHub version discovery fails
- construct GitCode attachment URLs from repository, tag, and asset filename
- retry core downloads through GitCode when GitHub downloads fail
This commit is contained in:
lzt404 committed 2026-08-07 15:20:30 +08:00
1 parent dd86eabefa
commit e8b2ced3f8
7 files changed
+200 -51

No files matched your search

+3 -2
View File
@@ -166,7 +166,8 @@ jobs:
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build GUI
env:
GITCODE_REPOSITORY: ${{ vars.GITCODE_REPOSITORY }}
GITCODE_GUI_REPOSITORY: ${{ vars.GITCODE_GUI_REPOSITORY }}
GITCODE_CORE_REPOSITORY: ${{ vars.GITCODE_CORE_REPOSITORY }}
RUSTFLAGS: -D warnings
run: |
bun install --frozen-lockfile
@@ -418,7 +419,7 @@ jobs:
--directory artifacts
--output artifacts/portable-update-windows.json
--repository "${{ github.repository }}"
--gitcode-repository "${{ vars.GITCODE_REPOSITORY }}"
--gitcode-repository "${{ vars.GITCODE_GUI_REPOSITORY }}"
--tag "$RELEASE_TAG"
- name: Publish release
shell: bash