Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

fix: rewrite latest.json binary download URLs to R2 CDN

t8y23bd0f50ff7c1
diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml
index 522fc34232..71ec30f27b 100644
--- a/.github/workflows/publish-packages.yml
+++ b/.github/workflows/publish-packages.yml
@@ -234,6 +234,25 @@ jobs:
--clobber
ls -lh assets/
+ - name: Rewrite latest.json download URLs to R2 CDN
+ run: |
+ TAG="${{ steps.version.outputs.tag }}"
+ LATEST_JSON="assets/latest.json"
+ if [ ! -f "$LATEST_JSON" ]; then
+ echo "::warning::latest.json not found, skipping URL rewrite"
+ exit 0
+ fi
+ echo "Before:"
+ jq '.platforms[]?.url // empty' "$LATEST_JSON"
+ jq --arg tag "$TAG" '
+ (.platforms[]?.url?) |= (
+ sub("https://github\\.com/t8y2/dbx/releases/download/" + $tag + "/"; "https://dl.dbxio.com/releases/latest/")
+ )
+ ' "$LATEST_JSON" > "$LATEST_JSON.tmp"
+ mv "$LATEST_JSON.tmp" "$LATEST_JSON"
+ echo "After:"
+ jq '.platforms[]?.url // empty' "$LATEST_JSON"
+
- name: Upload to R2 (versioned)
run: |
aws s3 sync ./assets "s3://${{ secrets.R2_BUCKET_NAME }}/releases/${{ steps.version.outputs.tag }}/" \