25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(ci): keep R2 updater manifest complete and self-healing
t8y2c89a2f49793f
diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.ymlindex c31586b755..906969a1c9 100644--- a/.github/workflows/publish-packages.yml+++ b/.github/workflows/publish-packages.yml@@ -239,6 +239,26 @@ jobs:--clobberls -lh assets/+ - name: Validate latest.json completeness+ run: |+ LATEST_JSON="assets/latest.json"+ if [ ! -f "$LATEST_JSON" ]; then+ echo "::error::latest.json not found in release assets; refusing to sync an incomplete manifest to R2"+ exit 1+ fi+ MISSING=""+ for p in darwin-aarch64 darwin-x86_64 windows-x86_64 windows-aarch64 linux-x86_64 linux-aarch64; do+ if ! jq -e --arg p "$p" '.platforms[$p] != null' "$LATEST_JSON" >/dev/null; then+ MISSING="${MISSING} ${p}"+ fi+ done+ if [ -n "$MISSING" ]; then+ echo "::error::latest.json is missing updater platforms:${MISSING}. Release builds may still be uploading assets; dispatch again after all release jobs finish."+ exit 1+ fi+ echo "Platform manifest complete:"+ jq -r '.platforms | keys[]' "$LATEST_JSON"+- name: Rewrite latest.json download URLs to R2 CDNrun: |TAG="${{ steps.version.outputs.tag }}"diff --git a/.github/workflows/sync-changelog.yml b/.github/workflows/sync-changelog.ymlindex 3033a67ac4..10a995725e 100644--- a/.github/workflows/sync-changelog.yml+++ b/.github/workflows/sync-changelog.yml@@ -97,9 +97,15 @@ jobs:--overwrite-existingENDPOINT="https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com"- aws s3 cp "s3://${R2_BUCKET_NAME}/releases/latest/latest.json" r2-latest.json --endpoint-url "$ENDPOINT"- jq --arg notes "$NOTES" '.notes = $notes' r2-latest.json > r2-latest.json.tmp- mv r2-latest.json.tmp r2-latest.json+ # Derive the R2 manifest from the GitHub release latest.json (notes already+ # injected above) instead of re-reading the R2 copy, so every sync also+ # heals a stale or partial R2 manifest.+ jq --arg tag "$TAG" '+ (.platforms[]?.url?) |= (+ sub("https://github\\.com/t8y2/dbx/releases/download/" + $tag + "/"; "https://dl.dbxio.com/releases/latest/")+ + "?v=" + $tag+ )+ ' updater-assets/latest.json > r2-latest.jsonaws s3 cp r2-latest.json "s3://${R2_BUCKET_NAME}/releases/${TAG}/latest.json" \--endpoint-url "$ENDPOINT" --content-type application/json --cache-control no-cacheaws s3 cp r2-latest.json "s3://${R2_BUCKET_NAME}/releases/latest/latest.json" \