AQian0/dsh-desktop

桌面端Desktop ⭐ 3 MIT 其他Other

基于Tauri的简易dsh桌面端套壳 | A simple Tauri-based desktop wrapper for dsh

项目介绍Project Overview

dsh-desktop 是基于 Tauri 2 的桌面壳插件,为 dsh Web 界面提供原生窗口。@aqian0/dsh-desktop-plugin 检测 Web 运行时绑定回环端口后启动 dsh-desktop --attach,关闭窗口即退出配置文件。注意:插件需配合 dsh Web 捆绑包使用,且同源路由在窗口内导航,外链交由系统浏览器处理。

dsh-desktop is a Tauri 2 shell that wraps the dsh Web surface in a native desktop window. The @aqian0/dsh-desktop-plugin runs dsh-desktop --attach http://127.0.0.1:<port> once the Web runtime binds its loopback port, with the runtime as the parent process. Same-origin routes stay in the window; external links and mailto:/tel: are handed to the system default handler.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile desktop add @aqian0/dsh-desktop-plugin

AQian0/dsh-desktop 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-desktop

English | 中文

A Tauri 2 desktop shell for the DeepSeek Harness Web surface. The dsh plugin @aqian0/dsh-desktop-plugin launches dsh-desktop --attach http://127.0.0.1:<port> once the Web runtime binds its loopback port, and opens the Web app in a single desktop window. The runtime remains the parent process; closing the window exits the profile, and the window never outlives the runtime.

Prerequisites

Installation

Quick install as a dsh plugin

dsh plugin --profile desktop add @aqian0/dsh-desktop-plugin
dsh --profile desktop

The plugin package ships per-platform prebuilt shell binaries through optionalDependencies, so no Rust toolchain is required. Its bundle layer also pins web-runtime.openBrowser to false, so dsh --profile desktop opens only the desktop window and never hands the URL to the system default browser. Inside the shell, same-origin Web app routes keep navigating in the window, while links to other origins and mailto:/tel: links are handed to the system default browser or app.

If the profile was newly created and has no Web bundle, set dsh.profile.bundles in ~/.dsh/profiles/desktop/package.json to:

["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@aqian0/dsh-desktop-plugin"]

@deepseek-ai/dsh-web-app resolves from the installed dsh; do not add it from npm.

Manual install from source

git clone https://github.com/aqian0/dsh-desktop.git
cd dsh-desktop
pnpm install
pnpm shell:build
pnpm plugin:install   # adds ./plugin to the desktop profile and configures bundles
DSH_DESKTOP_BIN=src-tauri/target/debug/dsh-desktop dsh --profile desktop

pnpm plugin:install is idempotent; after pulling changes re-run pnpm shell:build && pnpm plugin:install.

Build and packaging

pnpm build:no-bundle              # release binary
pnpm build                        # release binary + platform installers
pnpm package:current -- --build   # package plugin + current-platform binary for npm
pnpm plugin:smoke                 # GUI-free lifetime smoke test

License

MIT — see LICENSE. The app icon under icons-src/ and src-tauri/icons/ is derived from the DeepSeek Harness Web favicon and is used under the same MIT license.

上一个 Prev my-dsh 下一个 Next superself