5f348f9b1c
The renderer opens with sandbox:true, and Electron sandboxed preload scripts only support CommonJS. The preload was emitted as ESM (package.json is "type": "module"), so it failed to load silently and window.dshApp was never injected. The About section then fell back to plain-web mode: current version stayed on the '—' fallback and check-for-updates reported up-to-date without querying. Build the preload with esbuild into lib/types/preload.cjs and point the main process at it. Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"name": "@deepseek-ai/dsh-desktop",
|
|
"description": "DeepSeek Harness Desktop ,由 PineSound 基于 deepseek-harness 项目构建",
|
|
"version": "0.1.0-rc.5",
|
|
"private": true,
|
|
"type": "module",
|
|
"author": "PineSound",
|
|
"main": "lib/types/main.js",
|
|
"files": [
|
|
"lib/types/*.js",
|
|
"lib/types/*.cjs",
|
|
"lib/types/*.d.ts",
|
|
"electron-builder.yml"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -b tsconfig.json && pnpm run build:preload",
|
|
"build:preload": "esbuild src/preload.ts --bundle --platform=node --format=cjs --external:electron --outfile=lib/types/preload.cjs",
|
|
"build:harness": "node scripts/build-harness.mjs",
|
|
"generate-release-json": "node scripts/generate-release-json.mjs",
|
|
"stage-release": "node scripts/stage-release.mjs",
|
|
"typecheck": "tsc -b tsconfig.json",
|
|
"test": "vitest run",
|
|
"pack": "electron-builder"
|
|
},
|
|
"dependencies": {
|
|
"@deepseek-ai/dsh": "workspace:^"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"electron": "^42.4.1",
|
|
"electron-builder": "^25.1.8",
|
|
"esbuild": "^0.28.1",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.8"
|
|
}
|
|
}
|