Skip to content

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

Merge branch 'codex/theme'

hairyf7d59a31f547c
diff --cc src/App.tsx
index d62b6e7d,624e81a9..19d48ede
--- a/src/App.tsx
+++ b/src/App.tsx
@@@ -96,31 -168,8 +168,13 @@@ export default function App()
let unlistenInstall: UnlistenFn | null = null;
try {
- // Install-progress stream: only ever move the percentage forward, like
- // the reference installer store. 事件监听失败(例如 IPC 自定义协议被
- // CSP 拦截、回退 postMessage 也异常)不应阻断启动流程,因此容错跳过。
- unlistenInstall = await listenInstallProgress();
-
++ // 事件监听失败(例如 IPC 自定义协议被 CSP 拦截、回退 postMessage 也异常)
++ // 不应阻断启动流程,因此容错跳过。
+ try {
- unlistenInstall = await listen<InstallProgress>("install-progress", (e) => {
- const payload = e.payload;
- setInstaller((prev) => {
- if (payload.percentage < prev.percentage) {
- return prev;
- }
- const logs = payload.log
- ? [...prev.logs, payload.log].slice(-5)
- : prev.logs;
- return {
- title: payload.title || prev.title,
- detail: payload.detail || prev.detail,
- percentage: payload.percentage,
- logs,
- };
- });
- });
++ unlistenInstall = await listenInstallProgress();
+ } catch (err) {
+ console.error("[App] failed to listen install-progress:", err);
+ }
-
const runtimeInfo = await invoke<{ service_url: string }>("get_runtime_info");
setServiceUrl(runtimeInfo.service_url);