2026-08-14 10:23:22 +08:00
|
|
|
# electron-builder packaging for the DeepSeek Harness desktop shell.
|
|
|
|
|
#
|
|
|
|
|
# The harness runs as a system-Node child process (see src/main.ts), so the
|
|
|
|
|
# packaged app must ship a Node runtime for the platform it targets. Point
|
|
|
|
|
# DSH_NODE at a bundled Node executable at runtime (an electron-builder
|
|
|
|
|
# `extraResource` plus a small resolver in the main process), or keep spawning
|
|
|
|
|
# PATH `node`. No signing is configured; distribute the unsigned artifacts
|
|
|
|
|
# only for local evaluation until a certificate is provided.
|
|
|
|
|
appId: ai.deepseek.harness
|
|
|
|
|
productName: DeepSeek Harness
|
2026-08-14 17:39:26 +08:00
|
|
|
# Native addons (node-pty, …) run under the system-Node child process, never
|
|
|
|
|
# under Electron, so skip @electron/rebuild: rebuilding them for the Electron
|
|
|
|
|
# ABI is wasted work and needs a headers download the local proxy rejects.
|
|
|
|
|
npmRebuild: false
|
|
|
|
|
# The harness runs as an external system-Node child process (see src/main.ts).
|
|
|
|
|
# The fully self-contained runtime lives in build/harness — a copy of the
|
|
|
|
|
# repository's working node_modules plus vendor/packages/native/apps and a
|
|
|
|
|
# bundled Node binary — and is shipped as extraResources so the packaged app
|
|
|
|
|
# runs on any machine with no external install. The Electron shell itself is
|
|
|
|
|
# unpacked (`asar: false`); the harness stays on disk as real files for the
|
|
|
|
|
# child and for the native addons it dlopens.
|
|
|
|
|
asar: false
|
2026-08-14 10:23:22 +08:00
|
|
|
directories:
|
|
|
|
|
output: dist
|
|
|
|
|
files:
|
2026-08-14 17:39:26 +08:00
|
|
|
- lib/types/**/*.js
|
2026-08-14 10:23:22 +08:00
|
|
|
- package.json
|
2026-08-14 17:39:26 +08:00
|
|
|
# The self-contained harness (build/harness) lands at Contents/Resources/harness
|
|
|
|
|
# in the packaged app; src/main.ts spawns the bundled node + dsh CLI from there.
|
|
|
|
|
extraResources:
|
|
|
|
|
- from: build/harness
|
|
|
|
|
to: harness
|
|
|
|
|
filter:
|
|
|
|
|
- "**/*"
|
|
|
|
|
# One 1024px build/icon.png; electron-builder derives the per-target .icns/.ico.
|
|
|
|
|
icon: build/icon.png
|
2026-08-14 10:23:22 +08:00
|
|
|
mac:
|
|
|
|
|
target:
|
|
|
|
|
- dmg
|
2026-08-14 17:39:26 +08:00
|
|
|
icon: build/icon.png
|
2026-08-14 10:23:22 +08:00
|
|
|
category: public.app-category.developer-tools
|
|
|
|
|
win:
|
|
|
|
|
target:
|
|
|
|
|
- nsis
|
2026-08-14 17:39:26 +08:00
|
|
|
icon: build/icon.png
|
2026-08-14 10:23:22 +08:00
|
|
|
nsis:
|
|
|
|
|
oneClick: false
|
|
|
|
|
allowToChangeInstallationDirectory: true
|