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。

build(release): 增加 Windows 绿色版压缩包

t8y267bc43e997ce
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b89607f6a9..4e198f27d7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -121,6 +121,31 @@ jobs:
prerelease: false
args: --target ${{ matrix.target }}
+ - name: Upload Windows portable ZIP
+ if: matrix.platform == 'windows-latest'
+ shell: pwsh
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ $version = "${env:GITHUB_REF_NAME}".TrimStart("v")
+ $portableRoot = "portable"
+ $portableDir = Join-Path $portableRoot "DBX_${version}_x64"
+ $zipName = "DBX_${version}_x64-portable.zip"
+ $exePath = "target/${{ matrix.target }}/release/dbx.exe"
+
+ if (!(Test-Path $exePath)) {
+ Write-Error "Missing Windows executable: $exePath"
+ exit 1
+ }
+
+ New-Item -ItemType Directory -Force -Path $portableDir | Out-Null
+ Copy-Item $exePath (Join-Path $portableDir "DBX.exe") -Force
+ Copy-Item "LICENSE" (Join-Path $portableDir "LICENSE") -Force
+ Copy-Item "README.md" (Join-Path $portableDir "README.md") -Force
+
+ Compress-Archive -Path (Join-Path $portableDir "*") -DestinationPath $zipName -Force
+ gh release upload "${env:GITHUB_REF_NAME}" $zipName --repo "${env:GITHUB_REPOSITORY}" --clobber
+
publish:
needs: [build, docker-manifest]
runs-on: ubuntu-latest