Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

fix(ci): Linux 打包迁至 ubuntu-22.04 并产出 .deb,兼容 Ubuntu 22.04 (issue #41)

hairyfc927b87cbc2e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 24a10b55..ef74d8e8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -69,7 +69,7 @@ jobs:
- **macOS (Apple Silicon)**: 下载 `aarch64.dmg`
- **macOS (Intel)**: 下载 `x64.dmg`
- **Windows**: 下载 `.exe`
- - **Linux**: 下载 `.AppImage`
+ - **Linux (x64)**: 下载 `.AppImage` 或 `.deb`(基于 Ubuntu 22.04 构建,兼容 22.04 及更新版本)
EOF
gh release edit ${{ github.ref_name }} --notes-file release_notes.md
env:
@@ -94,8 +94,12 @@ jobs:
- id: windows
platform: windows-latest
args: ''
+ # Linux 打包跑在 ubuntu-22.04 而非 ubuntu-latest:
+ # 22.04 的 glibc/WebKitGTK 版本更老,产出的 .deb/.AppImage 才能在
+ # Ubuntu 22.04 及更高版本上运行;用 latest(24.04) 构建的产物会因依赖新
+ # 库而在 22.04 上装不上/跑不起来(issue #41)。
- id: linux
- platform: ubuntu-latest
+ platform: ubuntu-22.04
args: ''
runs-on: ${{ matrix.platform }}
@@ -146,7 +150,7 @@ jobs:
targets: ${{ matrix.platform == 'macos-latest' && (matrix.arch == 'aarch64' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin') || '' }}
- name: Install dependencies (Ubuntu only)
- if: steps.check.outputs.should_run == 'true' && matrix.platform == 'ubuntu-latest'
+ if: steps.check.outputs.should_run == 'true' && matrix.platform == 'ubuntu-22.04'
run: |
# GitHub runner 上 apt-get update 偶发网络卡死(无输出、无超时),
# 加 Acquire 超时/重试 + 外层 timeout + 循环重试,避免整个 job 挂起数小时。
@@ -179,7 +183,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- TAURI_BUNDLE_TARGETS: ${{ matrix.platform == 'ubuntu-latest' && 'appimage' || 'all' }}
+ TAURI_BUNDLE_TARGETS: ${{ matrix.platform == 'ubuntu-22.04' && 'appimage,deb' || 'all' }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'DeepSeek Harness Desktop ${{ github.ref_name }}'
@@ -194,7 +198,7 @@ jobs:
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- TAURI_BUNDLE_TARGETS: ${{ matrix.platform == 'ubuntu-latest' && 'appimage' || 'all' }}
+ TAURI_BUNDLE_TARGETS: ${{ matrix.platform == 'ubuntu-22.04' && 'appimage,deb' || 'all' }}
with:
tagName: ${{ format('test-{0}-{1}', github.ref_name, github.run_number) }}
releaseName: 'DeepSeek Harness Desktop 手动测试版 (构建 #${{ github.run_number }})'
@@ -215,4 +219,5 @@ jobs:
src-tauri/target/release/bundle/nsis/*.exe
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/appimage/*.AppImage
+ src-tauri/target/release/bundle/deb/*.deb
retention-days: 7
diff --git a/README.md b/README.md
index 675fd8b5..cd2e4b80 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@
首次运行会下载 Node 运行时与 Harness 内核,随后直接进入 `http://127.0.0.1:3080` 的 Harness 界面;此后完全本地运行,无需联网。
-**系统要求:** Windows 10+(64 位)· macOS 10.15+ · Linux(AppImage)· 首次运行需要网络
+**系统要求:** Windows 10+(64 位)· macOS 10.15+ · Linux(AppImage / `.deb`,基于 Ubuntu 22.04 构建,兼容 22.04 及更新版本)· 首次运行需要网络
## 开发