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: restore macOS frameworks to tauri.conf.json for proper bundling

t8y29a7c12c65a20
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 59113aceed..b89607f6a9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -113,7 +113,6 @@ jobs:
APPLE_ID: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_ID || '' }}
APPLE_PASSWORD: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_PASSWORD || '' }}
APPLE_TEAM_ID: ${{ startsWith(matrix.platform, 'macos') && secrets.APPLE_TEAM_ID || '' }}
- TAURI_CONFIG: ${{ startsWith(matrix.platform, 'macos') && '{"bundle":{"macOS":{"frameworks":["libodbc.2.dylib","libltdl.7.dylib"]}}}' || '{}' }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'DBX ${{ github.ref_name }}'
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
index d860e1e6a7..c1cd5c9d31 100644
--- a/src-tauri/build.rs
+++ b/src-tauri/build.rs
@@ -1,3 +1,9 @@
fn main() {
+ // In dev mode, skip framework bundling to avoid requiring libodbc/libltdl locally.
+ // CI copies the dylibs into src-tauri/ before release builds.
+ #[cfg(target_os = "macos")]
+ if std::env::var("TAURI_CONFIG").is_err() && !std::path::Path::new("libodbc.2.dylib").exists() {
+ std::env::set_var("TAURI_CONFIG", r#"{"bundle":{"macOS":{"frameworks":[]}}}"#);
+ }
tauri_build::build()
}
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 6e16b0b092..f88d9bdfce 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -29,6 +29,9 @@
"active": true,
"targets": "all",
"createUpdaterArtifacts": true,
+ "macOS": {
+ "frameworks": ["libodbc.2.dylib", "libltdl.7.dylib"]
+ },
"icon": [
"icons/32x32.png",
"icons/128x128.png",