From 53af046a915873945f44fbc8b084452edde681e4 Mon Sep 17 00:00:00 2001 From: yaojin3616 Date: Sun, 16 Aug 2026 23:18:51 +0800 Subject: [PATCH] perf: COS mirror with global acceleration and optimized upload - Switch update provider from GitHub to generic (dshdesktop.com) - Upload release assets to Tencent COS with global acceleration - Optimize: single latest/ directory only (no versioned copy) - Higher concurrency (routines 10, thread-num 8, long-links 20 - Disable CRC64 checksum for faster transfer - Update release tests for generic update provider --- .github/workflows/release.yml | 18 ++++++++---------- package.json | 4 +--- test/release.test.ts | 2 +- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0df91d..25f170e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -338,8 +338,8 @@ jobs: --repo $env:GITHUB_REPOSITORY ` --target $env:GITHUB_SHA ` --prerelease ` - --title 'DSH Desktop Windows Development Test' ` - --notes "Windows x64 development build for validating commit $env:GITHUB_SHA. This build uses an isolated app identity and user data directory, and has passed the packaged Windows Harness smoke test." ` + --title 'DSH Desktop Windows Harness Test' ` + --notes "Windows x64 development build for validating the Harness startup fix from PR #39. This build uses an isolated app identity and user data directory, and has passed the packaged Windows Harness smoke test." ` 'dist-dev/dsh-desktop-dev-windows-x64-setup.exe#DSH Desktop Dev Windows x64 Setup' - uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/v') @@ -412,15 +412,13 @@ jobs: COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }} COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }} COS_BUCKET: ${{ vars.COS_BUCKET }} - COS_REGION: ${{ vars.COS_REGION }} - RELEASE_TAG: ${{ github.ref_name }} run: | set -euo pipefail test -n "$COS_SECRET_ID" && test -n "$COS_SECRET_KEY" || { echo "::error::Missing secrets COS_SECRET_ID/COS_SECRET_KEY"; exit 1; } - test -n "$COS_BUCKET" && test -n "$COS_REGION" || { echo "::error::Missing variables COS_BUCKET/COS_REGION"; exit 1; } + test -n "$COS_BUCKET" || { echo "::error::Missing variable COS_BUCKET"; exit 1; } curl -sSfL -o coscli https://github.com/tencentyun/coscli/releases/download/v1.0.8/coscli-v1.0.8-linux-amd64 chmod +x coscli - cat > "$HOME/.cos.yaml" < "$HOME/.cos.yaml" < { ) as { dependencies: Record build: { - publish: Array<{ provider: string; url: string }> + publish: Array<{ provider: string; url?: string; owner?: string; repo?: string }> win: { verifyUpdateCodeSignature: boolean } } }